Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

ADC Data manipulation with PIC16F88 -- HELP!

Status
Not open for further replies.

Steve311

Member
Hello All; I am in process of using a PIC16F88 to read 2 analog inputs (AN3 and AN4). Once the analog inputs are read, there is some math done to determine if the input voltages are within a specific range. (2 < X < 3) and (4 < Y < 4.5). Depending on if both of the above statements are true or false, a corresponding output at RB1. If both statements are true, RB1 gets a logic high. If one of the two is false, the output will toggle from logic1 to logic0.

Again, my MPLAB SIM runs fine but when I burn the PIC I get no output. Would anybody mind taking a look at my code???

Thanks in Advance!
STeve
 

Attachments

  • A_D Conversion Code ver3.asm
    11.6 KB · Views: 156
Status
Not open for further replies.

Latest threads

Back
Top