C
ChronoFish
Hi there,
I have rigged up a pic on a bread board and I am not getting much response.
I can put a scope on osc2 and see a nice waveform - but nothing on osc1 (should I be able to?). This is a pic16f84a-20/p which I am
assuming means it will operate up to 20MHz - I'm using a 4MHz crystal.
The code works in my debugger which simply does the following:
If portb > 0 turn on everything on porta
if portb > 3 turn off everything on porta
WHAT SHOULD HAPPEN:
So with an input on portb pin 0 or 1 my LEDs should light
If lit, an input on portb pin 2 or higher should turn off the LEDs
If not lit, an input on portb pin 2 or higher should flash the LEDs 1 time
WHAT DOES HAPPEN:
The reality is that touching portb on any pin with +5v does nothing.
Touching physical pin 4 (the MCLR) turns on porta.
Any ideas?
Thanks!
CF
I have rigged up a pic on a bread board and I am not getting much response.
I can put a scope on osc2 and see a nice waveform - but nothing on osc1 (should I be able to?). This is a pic16f84a-20/p which I am
assuming means it will operate up to 20MHz - I'm using a 4MHz crystal.
The code works in my debugger which simply does the following:
If portb > 0 turn on everything on porta
if portb > 3 turn off everything on porta
WHAT SHOULD HAPPEN:
So with an input on portb pin 0 or 1 my LEDs should light
If lit, an input on portb pin 2 or higher should turn off the LEDs
If not lit, an input on portb pin 2 or higher should flash the LEDs 1 time
WHAT DOES HAPPEN:
The reality is that touching portb on any pin with +5v does nothing.
Touching physical pin 4 (the MCLR) turns on porta.
Any ideas?
Thanks!
CF