Hello there. I've just started to read the PIC16F628 datasheet/manual and I started to understand some concepts. Of course, there are some doubts, specially with some technical arguments that are in the datasheet..
I hope this threat may help some other people besides me.
Well, here there are my doubts (i'm gonna put a number before each doubt in order to be more easily to answer.
1- What is the prescaler? What is his funtion and for what it's usefull?
2- For what are those register and how usefull they are (I know that they are explained in the datasheet, but there are some stuff's that I can't understand - I'm not english native speaker, because the expressions used are too technical, so if are you guys telling by your words, I might understand better):
-STATUS
-OPTION
-INTCON
-PIE1
-PIR1
-PCON
-PCL and PCLATH
3- What is the function of TMR0? Why we need to select for example, TMR0 1:2 WDT 1:1, TMR0 1:4 WDT 1:2? What differences it makes?
4- What this means (there are lot's of stuffs like this in the manual):
PORTB<7:4> Inputs ; PORTB <3:00> (pag.42 of PIC16F628 datasheet)
5- I'd like to know too what means this MOVLW 0x07 (well in part I know what means, but I do not understand why is written like that 0x07. Basicly what means the 0x07? is equivalent to 07h? what is the difference to write in one way and another?)
Here is another: 0xC0.. - where can I locate this on the PIC memory?
Movlw 0xA6 (the same) pag 60...
6- Another notation used in the datasheet to identify something that I cannot figure it out..
CCP1M3:CCP1M0 (CCP1CON<3:0> (pag 62) What this means? Is some way to identify a place on something? Where?
7- Another example is the PWM formula, on pag 65..
there are some codes like the previows one, CCPR1L:CCP1CON<5:4> * Tosc (..).. what that means?
I hpe made myself explained, an please be patient, don't say anything to put me down.. this is the first time I'm trying to learn by myself programming a PIC.. specially to do a R/C project.
Best regards.
I hope this threat may help some other people besides me.
Well, here there are my doubts (i'm gonna put a number before each doubt in order to be more easily to answer.
1- What is the prescaler? What is his funtion and for what it's usefull?
2- For what are those register and how usefull they are (I know that they are explained in the datasheet, but there are some stuff's that I can't understand - I'm not english native speaker, because the expressions used are too technical, so if are you guys telling by your words, I might understand better):
-STATUS
-OPTION
-INTCON
-PIE1
-PIR1
-PCON
-PCL and PCLATH
3- What is the function of TMR0? Why we need to select for example, TMR0 1:2 WDT 1:1, TMR0 1:4 WDT 1:2? What differences it makes?
4- What this means (there are lot's of stuffs like this in the manual):
PORTB<7:4> Inputs ; PORTB <3:00> (pag.42 of PIC16F628 datasheet)
5- I'd like to know too what means this MOVLW 0x07 (well in part I know what means, but I do not understand why is written like that 0x07. Basicly what means the 0x07? is equivalent to 07h? what is the difference to write in one way and another?)
Here is another: 0xC0.. - where can I locate this on the PIC memory?
Movlw 0xA6 (the same) pag 60...
6- Another notation used in the datasheet to identify something that I cannot figure it out..
CCP1M3:CCP1M0 (CCP1CON<3:0> (pag 62) What this means? Is some way to identify a place on something? Where?
7- Another example is the PWM formula, on pag 65..
there are some codes like the previows one, CCPR1L:CCP1CON<5:4> * Tosc (..).. what that means?
I hpe made myself explained, an please be patient, don't say anything to put me down.. this is the first time I'm trying to learn by myself programming a PIC.. specially to do a R/C project.
Best regards.
Last edited: