mackrackit thanks for the assistance
I tried the HIGH PORTC.6 and LOW PORTC.6 loop and still nothing the led's remain off. I don't need to have an pull up or pull down resisitors on those pins do I?
Thanks
David
mackrackit thanks for the assistance
I tried the HIGH PORTC.6 and LOW PORTC.6 loop and still nothing the led's remain off. I don't need to have an pull up or pull down resisitors on those pins do I?
Thanks
David
No, the LED with its resistor takes care of that.
Now I have to ask the ...
Are you sure you are using the correct pins?
Have you checked the LEDs?
and so on...
With TRISC set for out or in, these to pins act as far as I know like any other, The TX/RX has to be defined.
Can you post you layout(schematic or picture)?
Dave
Always wear safety glasses while programming.
mackrackit, For my testing purposes trying to figure this out I am using:
a controller I purchased from http://www.futurlec.com/PIC16F877_Controller.shtml
and led array is http://www.futurlec.com/TrainingBoardAccessories.shtml
You know I feel so stupid not looking more closely at this board. I don't have the schematic and I just assumed that pins 25 and 26 were ported to the header for portc.
I just looked up the boards schematics
http://www.es.co.th/Schemetic/PDF/ET-BASE-PIC40.PDF
and it appears that quite clearly that 25 and 26 have been routed to an rs232 header on the board and the portc header has NC marked clearly on c.6 and c.7 and I'm going to assume that NC is "no connect", well I shouldn't do that should I? hehe if you look at the document you'll see what I mean.
I do appreciate your help answering my questions and getting me thinking more clearly. I'm at the office right now I'm going to check this out as soon as I get home. I should be able to do a quick test by placing a couple led's on that rs232 header on the main controller. Then it should be simple enough for me to route the 2 pins to the portc header were I actually need them.
I'll let you know how it turns out.
Quick look at that datasheet tells me that all you'd have to do is run a jumper across pins 8-9 and 7-10 on the MAX232...if what you're really looking for is to run the RS232 header directly from the PIC at TTL levels instead of RS232 levels.
yep thats exaclty what I want to do. Shame on me for not looking at the datasheet first and assuming that the header for portc was connected. What I am going to do is modify that and run jumpers so I can actually use the portc header pins for 6 and 7. I've already have my board etched. I think it should be easy enough.
Thanks
David
For the last few years or so, when I get PCBs done up for me by an outside company, I am ALWAYS putting in loads of extra thru-vias, at the PICs pins, at the components, on long runs, etc.etc. (except on things like crystal traces and anything really sensitive to spikes)
If I find a mistake, all I gotta do is cut a trace, and install jumpers across whatever via's fix the problems.
Sometimes I've got what looks like thousands of via's, but it works.
I'm glad it's not just me. I don't have allot of experience and I probably don't work on allot of projects but the ones I do no matter how careful I am I end up overlooking something. For this project I completely overlooked the fact the the ttl logic was not going to be enough to drive my 9v siren. Jeeze I know I'm no electrical engineer but what was I thinking!
Thanks again
David
Bookmarks