Hi mister_e,Originally posted by mister_e
Are you using PIC16F877 ???? PORTA.3 for LOAD/CS pin.... PORTA.3 is analog. Must be turn to digital
ADCON1=7 ;turn off PORTA & PORTE to digital
First off thanks again for giving me hand. I added the ADCON1=7 command as follows <snippet>
'********
symbol DOUT = PORTC.5 'line for data input connected to RC5
symbol CLK = PORTC.3 'CLK line connected to pin RC3
symbol Load = PORTA.3
ADCON1 = 7
'********
I read up on MELabs site about the intermittent problems they have when not turning off the A/D functions. Great tip. I did try adding the pause commands as you suggested. Still no change. I do see that the pause commands are taking affect as I'm monitoring the pins on a O-Scope.
A few observations:
I can have banks 1, 2 & 3 all 00000000 and bank 0 = 00011111 and all LED's on bank 0 shutsdown. As soon as I go to 00001111 all is well.
I cannot go into Display test mode, this also shutsdown all LED's.
Output of 16F877 pin#24 RC.5 has a strange output. Has 2 sets of pulses - a 12.5 Hz pulse and a 50 Hz pulse. I can see both at the same time (not using a dual channel scope mode). I attached a screen shot of the pulses. Not too good but you'll get the idea.
I am using the default 4MHz clock, I was under the impression that the clock pulse would be a constant pulse at a particular rate out. It almost looks like a burst of pulses (15 of them) then it starts the pattern over. I'm going to recheck my oscope to make sure I'm not in some un-calibrated mode.
Thanks for all the help you have given me. Their must be something I'm missing...
George-
Netjammer-
Bookmarks