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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/30/06 16:26
Read: times


 
#123393 - True
Responding to: ???'s previous message
Saif Ullah Khalid said:
the very architecture of pic is not so straight forward as its a perception that many hobbyists will get on it easily,their are chores like bank switching,banked ram etc etc,...


I agree 100%. The 8052 assembly language and architecture is much easier to understand and use than the PIC. It has to be marketing--from a hobbyist standpoint where the only concern really is ease-of-use, you'd think the 8052 would win hands down.

so if u are programming them in c then its not that painfull,but what really appeals is vast variety of peripheral integration +cost.in my experience c compiler from HI-tech (PICC)is really a wonderfull compiler when working with Midrange pic micros like 16fxx.The code generated by this compiler is highly optimised in both code and execution that in 90% of cases its comprable to assembly code.


Interesting. I'd be very skeptical of using 'C' on the PIC just because there's relatively little memory and things require so many instructions to accomplish. Even if 'C' is optimized, you still have the libraries and all the sloppy techniques you can use when you have them available. For example, code to output a byte as two hex digits to the serial port might take around 10 instructions on the 8052. But if you're working in 'C' and you use printf, you immediately add a LOT of library baggage. That code might be optimized, but it's still there.

I would just think that 'C' programs on the PIC would have to be very small. The PIC I'm working with now has 2k. I can't imagine doing any real 'C' programming that required any libraries and having much of any code space left over for the actual program.

Then again, I might give it a quick shot. If the code is as optimized as you say it is and I just stay away from using any 'C' libraries, maybe I can get this thing working without actually having to suffer through the PIC's instruction set.

Regards,
Craig Steiner


List of 72 messages in thread
TopicAuthorDate
PIC?            01/01/70 00:00      
   Awful instruction set and CPU architecture            01/01/70 00:00      
      yes true kalpak            01/01/70 00:00      
         True            01/01/70 00:00      
            I know this guy who whips out 3 PIC projects a wee            01/01/70 00:00      
            Hi-tech            01/01/70 00:00      
         Thanks            01/01/70 00:00      
            a case study...            01/01/70 00:00      
               words            01/01/70 00:00      
                  oh sorry...            01/01/70 00:00      
   Datasheets are terrible...            01/01/70 00:00      
   I hear you brother!            01/01/70 00:00      
      to PIC or not to PIC            01/01/70 00:00      
      8051-like "instruction set" for PICs            01/01/70 00:00      
   Why PICs? Let me count the ways            01/01/70 00:00      
      Hey Charles!            01/01/70 00:00      
         :)            01/01/70 00:00      
            Ahh the luxury!            01/01/70 00:00      
               True            01/01/70 00:00      
                  Stretching it            01/01/70 00:00      
               Memories            01/01/70 00:00      
      Really?            01/01/70 00:00      
         a true story            01/01/70 00:00      
         No, not really            01/01/70 00:00      
      Hmm            01/01/70 00:00      
         Steve, Why are you attacking me?            01/01/70 00:00      
            Your msg Charles            01/01/70 00:00      
            a joke            01/01/70 00:00      
               Exactly            01/01/70 00:00      
            Yes ?            01/01/70 00:00      
               It was an attack. Not a joke.            01/01/70 00:00      
                  how can a copy be misquote?            01/01/70 00:00      
                  Equally talented            01/01/70 00:00      
            Have you heard of copyright            01/01/70 00:00      
               Your employees can\'t have hobbies?            01/01/70 00:00      
                  You've never heard of ...            01/01/70 00:00      
                     Really?            01/01/70 00:00      
                        nope            01/01/70 00:00      
                           copyright etc.            01/01/70 00:00      
                              10 2) 3) 4) enough?            01/01/70 00:00      
                     Ahhh            01/01/70 00:00      
                  nope            01/01/70 00:00      
            I can\'t blame him.            01/01/70 00:00      
               PICs are low consumption            01/01/70 00:00      
                  ...So are LPC            01/01/70 00:00      
                     how much exactly?            01/01/70 00:00      
                         Not at the moment            01/01/70 00:00      
                        did you check the \"user giude\"?            01/01/70 00:00      
                           that's even more confusing            01/01/70 00:00      
                              this is 'to be found out'            01/01/70 00:00      
                        The real world            01/01/70 00:00      
                           current consumption            01/01/70 00:00      
      PICs outsell the 8051??            01/01/70 00:00      
         Both outsold by 68HC05            01/01/70 00:00      
      a comment and a correction            01/01/70 00:00      
      All these wonders, yet the 805x still outsells it!            01/01/70 00:00      
      Market share            01/01/70 00:00      
      Lots of 8051s now            01/01/70 00:00      
   PICky, PICky, PICky...            01/01/70 00:00      
   Continuing...            01/01/70 00:00      
      35 instruction            01/01/70 00:00      
         Very accurate            01/01/70 00:00      
      ARGH!            01/01/70 00:00      
   sorry, could not help it            01/01/70 00:00      
   How do you confuse an embedded developer?            01/01/70 00:00      
      Nice one            01/01/70 00:00      
   PIC Assembly is tough.            01/01/70 00:00      
   site            01/01/70 00:00      
      start here            01/01/70 00:00      
         and for PIC 'c' programming...            01/01/70 00:00      
            Free C compiler            01/01/70 00:00      
               agreed but....            01/01/70 00:00      

Back to Subject List