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.

pic 12f675 code (assemble language)

Status
Not open for further replies.

srikanthind

New Member
Hi everyone,

Could you someone help me regarding this please? I wrote small progrma using pic 12f675. When I am checking 'watch' the GPIO inputs are not changing according to the program. Are there any specifications need to be given for GPIO port.

thank you
 
You need to make the port pins outputs... The TRISIO register controls the direction of each pin... A "1" means input and a "0" means output.... so to use ALL the pins as output use TRISIO = 0... Also turn off any ADC pin using the ANSEL register..
 
Thank you Ian, I didn't clear the ANSEL register earlier. It's working now. Thank you very much.

You need to make the port pins outputs... The TRISIO register controls the direction of each pin... A "1" means input and a "0" means output.... so to use ALL the pins as output use TRISIO = 0... Also turn off any ADC pin using the ANSEL register..
 
Status
Not open for further replies.
Back
Top