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.

initialize 16F877

Status
Not open for further replies.

antoni1

New Member
HI can anyone help me with 16F877 initialize?
im using RA0/AN0 for Right bumb and RA1/AN1 for left bumb
RB0/INT33 is connected on an LED
RC6/TX/CK is connected on SERIN of SMC02
RC2/CCP1 is connected on RESET of SMC02

void initialise()
{
OPTION_REG=0x00;
STATUS=0x3f;
TRISA=0x03;
TRISB=0x02;
TRISC=0x00;
PORTA=0xFF;
PORTB=0x00;
PORTC=0x00;
RB0=0;

thunks
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top