Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 9th November 2003, 03:06 AM   #1
Default PC to PIC16F877A rs232 examples

Hey everyone
I recently converted my JDM programmer to accept the 877a and it works. Now, I would like to send data to my 877a and then display it on a hitachi compatible lcd ( i got that working too ).

The concept that I have is to push a button (Disk +) and the PIC will send a command to the PC's comm port. VB will be looking for the command and then scroll through a text file and send the album title out the comm port to the PIC. The pic then take the data and send it out to the lcd.

Does anyone have any examples? I have read the datasheet on the 877a and ended up completely confused!!

Is there some sort of tutorial for communicating to the pic from the pc?

Any help is greatly appreciated.

BTW, Exo and Chippie, you guys are the greatest for helping me out even though you may not remember me.

Thanks
Beefer3 is offline  
Old 9th November 2003, 09:35 AM   #2
Default

hello beefer

im fairly new to pic programming, and have also wanted to interface such devices and have found just the article!

take a look here
http://www.winpicprog.co.uk/pic_tutorial7.htm

however the tutorial files are for the 16F628 and 16F876 as far as i can see, but this shouldnt be too hard to convert from should it?

here is a link to the hardware needed
http://www.winpicprog.co.uk/pic_tutorial_hardware.htm

Hope this helps

Kane[/url]
Kane2oo2 is offline  
Old 9th November 2003, 10:12 AM   #3
Default

The tutorial on winpicprog does the communication in software. This is good for pics without hardware usart (F84,...). Your 16F877A does have a hardware usart so its easyer to use it.

Take a look on the application notes about rs232
http://www.microchip.com/1010/suppdo...sart/index.htm specially app note 774
Exo is offline  
Old 10th November 2003, 02:41 PM   #4
Default

Implementing serial communications with PICbasic pro is really fast an easy. Do you have PICBASIC PRO?
ivancho is offline  
Old 10th November 2003, 03:25 PM   #5
Default

Quote:
Originally Posted by ivancho
Implementing serial communications with PICbasic pro is really fast an easy. Do you have PICBASIC PRO?
Does picbasic pro use the hardware usart?
Exo is offline  
Old 17th November 2003, 12:13 PM   #6
Default

Quote:
Originally Posted by Exo
The tutorial on winpicprog does the communication in software. This is good for pics without hardware usart (F84,...). Your 16F877A does have a hardware usart so its easyer to use it.
The last part of the tutorial uses the hardware USART in a 16F876.
Nigel Goodwin is offline  
Old 17th November 2003, 02:47 PM   #7
Default

Quote:
Originally Posted by Exo
Does picbasic pro use the hardware usart?
Yes you can there is a command.... HSERIN and HSEROUT....., they use the hardware USART built into certain PICs
ivancho is offline  
Reply

Thread Tools
Display Modes




All times are GMT. The time now is 12:40 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker