Discussion in "ARM Development" started by    bonois_dailleurs    May 19, 2011.
Thu May 19 2011, 01:39 pm
#1
hello ,

can someone give me an exemple for using TOPC and TOPR for clock configuration , in LPC2378 device
Thu May 19 2011, 08:23 pm
#2
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
#3
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
#4
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.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

JefferyBrazy
Sat May 11 2024, 02:33 pm
autogCar
Sat May 11 2024, 03:38 am
Dulcehet
Fri May 10 2024, 04:22 pm
ElvasKl
Fri May 10 2024, 04:54 am
RonaldNak
Thu May 09 2024, 07:45 pm
Jamescon
Thu May 09 2024, 12:52 pm
RobertSkats
Thu May 09 2024, 10:23 am
hvCar
Thu May 09 2024, 05:53 am