HI, iv learned alot about micro controllers in the past week. Iv been stuck on a problem for two days now and just cant figure it out. Im trying to connect my computer to my PIC16F876. Iv uploaded my program(attached) using MPLAB and all hardware is setup.
When I input characters through my keyboard i can see the square wave going into my MAX232 and than into my PIC(pin 18) through my oscilliscope, however its giving me no output on the screen. I checked my TX(pin17) and there is no output either, What is happening i think is that when i call my AAsUSARTgetByte() function, its alwayse returning zero which corresponds to an error. Note that some of the functions in the code attached are not being used so pay no attention to them. Do you guys know of any thing i can try to fix this problem. Thanks
When I input characters through my keyboard i can see the square wave going into my MAX232 and than into my PIC(pin 18) through my oscilliscope, however its giving me no output on the screen. I checked my TX(pin17) and there is no output either, What is happening i think is that when i call my AAsUSARTgetByte() function, its alwayse returning zero which corresponds to an error. Note that some of the functions in the code attached are not being used so pay no attention to them. Do you guys know of any thing i can try to fix this problem. Thanks