prescale counter for LPC2378
Discussion in "ARM Development" started by bonois_dailleurs May 19, 2011.
Thu May 19 2011, 01:39 pm
hello ,
can someone give me an exemple for using TOPC and TOPR for clock configuration , in LPC2378 device
can someone give me an exemple for using TOPC and TOPR for clock configuration , in LPC2378 device
Thu May 19 2011, 08:23 pm
I have not heard of anything like TOPC or TOPR in LPC23xx series. are you sure you know what you're asking??
Thu May 19 2011, 10:27 pm
I found T0PC and T0PR for the LPC21xx and LPC32xx series, but not the PC2378
[ Edited Thu May 19 2011, 10:28 pm ]
Sun May 22 2011, 01:28 pm
oww... he has written it as TOPC and TOPR
well regarding these regsiters:
TxTC = Timer counter
TxPC = prescalar counter
TxPR = prescalar register
where x is 0/1/2/3.
TxTC is the actual timer register which gets incremented at every timer clock. In LPC23xx prescalar work like this. you set a value which you want on your TxPR regsiter. At every timer clock instead of incrementing TxTC, TxPC is incremented first. when TxPC becomes equal to TxPR, TxPC becomes 0 and TxTC gets incremented by 1. so thats how prescalar works in LPC.
Hope you understand now. I suggest you to go through user manual and if you dont understand from manual then you ask question.
well regarding these regsiters:
TxTC = Timer counter
TxPC = prescalar counter
TxPR = prescalar register
where x is 0/1/2/3.
TxTC is the actual timer register which gets incremented at every timer clock. In LPC23xx prescalar work like this. you set a value which you want on your TxPR regsiter. At every timer clock instead of incrementing TxTC, TxPC is incremented first. when TxPC becomes equal to TxPR, TxPC becomes 0 and TxTC gets incremented by 1. so thats how prescalar works in LPC.
Hope you understand now. I suggest you to go through user manual and if you dont understand from manual then you ask question.
Powered by e107 Forum System