Hi, my electronic teacher has suggested me to connect 2 pic's together but i don't have a clue how to. Can someone help me please
You can hook two PICs together with some sort of serial communication but again for a first project I would not recommend.
The basic idea is to send a command from PIC#1 to PIC#2. When PIC#2 receives a command it will execute an operation. The manual tells how to get started with serial comms.
Have you blinked a LED with one chip yet?
Dave
Always wear safety glasses while programming.
Yes i want control over around 16 L.E.Ds but i cannot find a pic with 16 outputs so i thought connecting 2 pic together would be a better solution. Which command should i send from pic 1 to pic 2?
Thanks
Marty,
For your first project I strongly recommend using just one chip. There are plent of PICs with 16 and more IOs.
The 16F877A-I/P would be a good one to start with. At least I like it. 33 I/Os.
http://www.microchip.com/stellent/id...cName=en010242
But if you look here you can find others. Just make sure your programmer will support it. And get something in the "F" , 16Fxxxx. These are flash memory.
http://www.microchip.com/ParamChartS...g=en&pageId=74
If you still want to use two the send part would look something like this.
The receiving codeCode:SEROUT PORTC.4,T2400,[9,3] '9 is the character the receiving PIC is waiting for, 3 is the command
Here is a simple example of how to control more LEDs than you have pins.Code:SERIN PORTC.4,T2400,[9],net 'when 9 is received the next character is written to variable "net" IF net = 3 THEN Do something
http://www.mackrackit.com/mac/www/dave/LED/LEDs.html
Dave
Always wear safety glasses while programming.
Hi, i want to buy the micro controller - pic 28x but i don't know its code name (e.g. PIC 16F87X) can anyone tell me its name please?
Also i need to programme my pic after i've purchased it but i can't find any resources to help me learn to programme it. Can anyone suggest a good source which could help me pleasE?
Thank you very much!![]()
Bookmarks