PDA

View Full Version : Help please about pic16f628



eee1984
- 22nd January 2008, 09:19
Hi friends

I ask a question to you. if you know answer please reply me..
I use shiftout command for pic16f628 programming but I control pic16f628 clockout output There is not any signal... pic programmer setting is below.

http://img213.imageshack.us/img213/2908/adszgs6.jpg

I wonder shiftout command does not work with internal oscillator.. Is there right...??

mat janssen
- 22nd January 2008, 12:05
That clock pin has in principle nothing too do with your shiftin instruction. This is a setting for the control register to make that pin an i/o pin and not oscilator related.
You use now the internal rc oscillator. When you read well the shiftin instruction than you will see that you say there what pin is the clockpin and what pin in the data pin of you shift thing.
par 5.75 SHIFTIN
SHIFTIN Datapin,Clockpin,Mode,[var{\bits}....]
etc.etc.etc.

eee1984
- 22nd January 2008, 13:56
That clock pin has in principle nothing too do with your shiftin instruction. This is a setting for the control register to make that pin an i/o pin and not oscilator related.
You use now the internal rc oscillator. When you read well the shiftin instruction than you will see that you say there what pin is the clockpin and what pin in the data pin of you shift thing.
par 5.75 SHIFTIN
SHIFTIN Datapin,Clockpin,Mode,[var{\bits}....]
etc.etc.etc.

Thanks friend ;)