Hi Kamikaze,
I guess the answers to my questions is test and evaluate, in this case I am on the right track.
I started to design arround This guy's project but I was never able to observe what I was expecting on the scope for the input amplification stages and I was not completely understanding what I was doing so I've decided to start with the basics and found this link from Les Johnson which is really basic and I am having some difficulties understanding 100% of his code but I do get the basics.
I am pretty close to a newbe with PBP Pro and PICs, but I am really good at playing sounds on piezzo and blinking LEDs and I think now I am good with LCDs so like I said, I have a long way to go.
I was wondering if it is better to do more hardware and less code or vice versa but I guess the opposite is better since it is faster to change code than it is to change hardware, I am just not sure yet where I have to draw the line.
I am presently intensivelly playing with timers and interupts and I must say I am having a lot of fun trying to understand but as I am doing this on an average of 16 hours per day, I should get the hang of it in no time.
While I am at it maybe if someone can explain something; in my code I have
Code:
CMCON = 7 ' Disable comparator
INTCON = $80 ' Disable interupts
T1CON = 0 ' Timer1 off, prescaler 1:1
and then I do this:
Code:
TMR1H = 0:TMR1L = 0
T1CON.0 = 1
PAUSEUS 1
LCDOUT $FE,$80,"TMR1H = ", dec TMR1H
LCDOUT $FE,$C0,"TMR1L = ", dec TMR1L
I get: TMR1H = 4 and TMR1L = 23
What I understand from the datasheet is TMR1H cycles when TMR1L overflows so the value I am getting is actually:
4 x 65535 +23 ?
how did it get do far with PAUSEUS 1 ?
Then if I do PAUSEUS 2
I get: TMR1H = 4 and TMR1L = 24
I am confused!
Mike
Bookmarks