Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Electro Tech forum,
Jon, Thanks for the info about RA5.
I need 7 output ports to drive a 7 segment display and
I see RA6 is only an input.
I'm using RB0 as an external interrupt and I will need
2 more interrupt ports later. So does that mean that
I have to divide up my 7 outputs between ports A&B?
That would make for ugly software.
Jerryd
I see RA6 is only an input.
So does that mean that I have to divide up my 7 outputs between ports A&B?
That would make for ugly software.
Jon,
I'm very new to microcontrollers so this an approach I'm
not familiar with. I'll read up on the USART function.
The shift register would be a separate device.. right?
Incidently I've been through Rhonert park many times on
the way to Santa Rosa. Nice place.
Thanks for the reply.
jerryd
It's a 60HZ signal comming from the AC line through a 1K resistor and a 5.1v zener diode to ground. I count interrupts in my ISR routine to get a 1HZ signal. Since RBO is a Schmitt trigger input it works fine for blinking an LED.
Also I can't figure out how to distinguish which PORTB pin 4-7
caused the mismatch interrupt. Pommie I couldn't find your
example.
byte previous, changed, newLows, newHighs
ISR pb=PORTB
INTCON.RBIF = 0
changed = pb XOR previous
newHighs = changed AND pb
newLows = changed AND previous
previous = pb
'to check if B6 went low check newlows.6 = 1
'to check if B4 went high check newHighs.6 = 1