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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/28/05 05:21
Read: times


 
#96072 - No PCA available
Responding to: ???'s previous message
Erik,

I read the doc on the PCA and it looks like it would be very handy for this application. Unfortunately my MCU doesn't have it. I am using an Atmel AT89C2051. Confession time now...I am working through a robotics project book. The book is actually using a PIC16F84 for the project. I already had the Atmel here and the programmer for it. So I am being cheap and trying to use what I have. I figured hey, my MCU is more powerful anyway so surely it is capable. The other gotcha of the book is that it requires the PICBasic compiler and all of the code is written in BASIC.

I don't want to pay for a compiler and I am quite happy with C so I have created another hurdle for myself I guess. Apparently in PICBasic there is this wonderous little command called "pulsout" where you set the desired duration of your pulse and it happily puts that pulse out of any pin you want or multiple pulses out of multiple pins.

It has been frustrating how difficult this behavior seems to be to reproduce in C.

This turned into more of a rant than anything else I guess. If I can use the chip I have that would be great. This chip looks like a toy compared to the first one in the Atmel line with PCA, but hey, even that one is only $7.00 so not a big deal I guess. I'm just a little nervous because I have already deviated from the book once and if I get a chip with PCA it will be yet another deviation, and then I'll probably be stuck trying to build a programmer for a 40 pin chip which will probably be a project in itself. Given that this project is a lot of firsts for me I am trying to keep things as simple as I can.

List of 30 messages in thread
TopicAuthorDate
General Pulse Width Modulation on 8051            01/01/70 00:00      
   The logic seems good            01/01/70 00:00      
      How to post code            01/01/70 00:00      
      Code I'm using            01/01/70 00:00      
         Problem lies with SDCC and PSW handling.            01/01/70 00:00      
            similar "issue" with Keil?            01/01/70 00:00      
            PSW not touched in recent version            01/01/70 00:00      
               Old SDCC (ver ??) vs New SDCC (ver 2.50)            01/01/70 00:00      
                  strange            01/01/70 00:00      
                     not strange, sorry            01/01/70 00:00      
                        Still no good            01/01/70 00:00      
                           Still not strange            01/01/70 00:00      
   Alternative method            01/01/70 00:00      
   65536, not 65535            01/01/70 00:00      
      Caught that errror            01/01/70 00:00      
         why not use the PCA, it is made for this            01/01/70 00:00      
            No PCA available            01/01/70 00:00      
               slim PICkins            01/01/70 00:00      
               go ahead, spend $7            01/01/70 00:00      
                  Why not read 8051 stuff?            01/01/70 00:00      
                     Excellent - Thanks            01/01/70 00:00      
                  Atmel Flip            01/01/70 00:00      
                     MAX232(equivalent)            01/01/70 00:00      
                        Another Option            01/01/70 00:00      
                     level convertor            01/01/70 00:00      
                        aka "Transceiver"            01/01/70 00:00      
         JSIM.EXE is all you need and it FREE.            01/01/70 00:00      
   Still not strange            01/01/70 00:00      
   Follow Up to the original post            01/01/70 00:00      
      Dumb and dumberrer            01/01/70 00:00      

Back to Subject List