PDA

View Full Version : Help to Pre Scale 4mhz to 20mhz



jetpr
- 16th September 2005, 01:13
this is my Code at 4mhz (pic18f252)

MotorDC VAR CCPR1L
MotorOut VAR PORTC.2
MotorOn CON %1111110 '16 Pre/Post scale
MotorOff CON %1111010
MotorEnable VAR T2CON 'Timer2 ControlRegister

how to change to 20mhz to work the same like 4mhz

mister_e
- 16th September 2005, 02:06
http://www.picbasic.co.uk/forum/showpost.php?p=10283&postcount=1

jetpr
- 16th September 2005, 03:15
his is my Code at 4mhz (pic18f252)

MotorDC VAR CCPR1L
MotorOut VAR PORTC.2
MotorOn CON %1111110 '16 Pre/Post scale
MotorOff CON %1111010
MotorEnable VAR T2CON 'Timer2 ControlRegister

how to change to 20mhz to work the same like 4mhz

I do not understand.

who i get %1111110 this number from the link you send my..
i am never don this before so i am lost..

mister_e
- 16th September 2005, 03:21
so the obvious questions remain...
what do you want to do?
what result do you expect?
Where?
How?

Everybody sing this song!! Doo DAH Doo Dah !! And everybody sing this song All DeDoo Dah Day!!!

Sorry my last brain cell burned...

jetpr
- 16th September 2005, 03:30
I'm sorry i am working with a book for make small robots and does not it speak of as obtaining the values ...

I do not want to bother nobody alone to learn.