Hi guys,
Asked for some help regarding a pic to pc communication using rs232 and serial port a few weeks ago.
Manged to get all my components ordered and finished building the thing last week, now for my one true hate, programming! Need to send a worded message through the USART function of the PIC16F88.
I know what I want my pic to do, but I can only say it like this, have no idea how to put into a code.....
Check pins 1, 2 and 3.
If pin 1 = 0
and pin 2 = 1
and pin 3 = 1
send string "FAIL" to pin 11
Thats basically it although I know it will take a bit more than that. The same procedure will be repeated about 5 times for various '1' and '0' combinations.
Please, please can someone help me bring this into some kind of code.
The main things I need to know are:-
1 - What kind of program do I make the code in? (mikroC)
2- What information do i need to do this? (port numbers etc.)
3- How long will the code be/what functions should i use?
4- What program do I use to convert and download the program to the pic?
Thanks for your help, I have been directed to online tutorials before but they arent much use to me because i just simply dont understand the code and what its doin!
Asked for some help regarding a pic to pc communication using rs232 and serial port a few weeks ago.
Manged to get all my components ordered and finished building the thing last week, now for my one true hate, programming! Need to send a worded message through the USART function of the PIC16F88.
I know what I want my pic to do, but I can only say it like this, have no idea how to put into a code.....
Check pins 1, 2 and 3.
If pin 1 = 0
and pin 2 = 1
and pin 3 = 1
send string "FAIL" to pin 11
Thats basically it although I know it will take a bit more than that. The same procedure will be repeated about 5 times for various '1' and '0' combinations.
Please, please can someone help me bring this into some kind of code.
The main things I need to know are:-
1 - What kind of program do I make the code in? (mikroC)
2- What information do i need to do this? (port numbers etc.)
3- How long will the code be/what functions should i use?
4- What program do I use to convert and download the program to the pic?
Thanks for your help, I have been directed to online tutorials before but they arent much use to me because i just simply dont understand the code and what its doin!