Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/20/07 07:55
Read: times


 
#137607 - Already answered!
Responding to: ???'s previous message
Jecksons Ben said:
Porting from PIC to MCS-51,How to do that?

It's already been said: Look at what the code does; do not worry about the specifics of how that happens to have been implemented for the other architecture (PIC, in this case).

http://www.8052.com/forumchat/read.phtml?id=137240
http://www.8052.com/forumchat/read.phtml?id=137241

If you like flowcharts, draw a flowchart of what the PIC code does; then use that as your starting point to write the 8051 code.

If you like pseudocode, then write pseudocode for what the PIC code does and, again, use that as your starting point to write the 8051 code.
eg:
   -- Send a packet
   build packet header;
   load payload;
   calculate checksum/CRC/whatever;
   add packet trailer;
   transmit the packet;
   wait for response;
   :
   :

As you can see, none of that is specific to any particular architecture, or to CISC or RISC or anything else!

If the code is in 'C', this should be easy.

As far I knew that RISC and CISC are totally different,even the code structure.

At the machine code level, yes.

But at the level of the application, it's irrelevant.

eg, the calculation necessary to compute a CRC is the same whether you implement it on an ARM, an 8051, a PIC or even in hardware.




List of 33 messages in thread
TopicAuthorDate
TNC with AT89S5X and MX614/3105            01/01/70 00:00      
   I do not think so, but am curious            01/01/70 00:00      
      When I used a TNC...            01/01/70 00:00      
      TNC with AT89S52            01/01/70 00:00      
   KISS APRS            01/01/70 00:00      
      My compliments, Bruce            01/01/70 00:00      
         Thumbs-Up Thingy            01/01/70 00:00      
            What Thumbs=Up Thingy?            01/01/70 00:00      
               Six months            01/01/70 00:00      
            Yup...            01/01/70 00:00      
         Be patient, your day will come            01/01/70 00:00      
      KISS APRS from ARRL            01/01/70 00:00      
   Bruce Revor Unfortunedly with PIC877            01/01/70 00:00      
      But the principles will be the same!            01/01/70 00:00      
         The principles will be the same??            01/01/70 00:00      
            Totally missed the point!            01/01/70 00:00      
         The Principles will be the same?????            01/01/70 00:00      
            Porting to another architecture            01/01/70 00:00      
               Exactly!            01/01/70 00:00      
   Study PIC and leaving MCS-51(8052)            01/01/70 00:00      
      Already answered!            01/01/70 00:00      
         Code in C            01/01/70 00:00      
   Study PIC???            01/01/70 00:00      
      Porting            01/01/70 00:00      
         Porting ???            01/01/70 00:00      
            PIC to 8051            01/01/70 00:00      
            More Info            01/01/70 00:00      
            my way of porting assembler            01/01/70 00:00      
   Never studied PIC            01/01/70 00:00      
      Never studied PIC            01/01/70 00:00      
         Studied PIC??            01/01/70 00:00      
            No KISS for me            01/01/70 00:00      
               KISS/APRS from Expert            01/01/70 00:00      

Back to Subject List