поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

EM6821 датащи(PDF) 35 Page - EM Microelectronic - MARIN SA

номер детали EM6821
подробное описание детали  Ultra Low Power uController with 4x20 LCD Driver
PDF  68 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  EMMICRO [EM Microelectronic - MARIN SA]
домашняя страница  http://www.emmicroelectronic.com
Logo EMMICRO - EM Microelectronic - MARIN SA

EM6821 датащи(HTML) 35 Page - EM Microelectronic - MARIN SA

Back Button EM6821 Datasheet HTML 31Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 32Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 33Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 34Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 35Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 36Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 37Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 38Page - EM Microelectronic - MARIN SA EM6821 Datasheet HTML 39Page - EM Microelectronic - MARIN SA Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 68 page
background image
R
EM6821
Copyright
© 2005, EM Microelectronic-Marin SA
35
www.emmicroelectronic.com
8.6 Counter Setup
RegCDataL[3:0],
RegCDataM[3:0], RegCDataH[1:0] are used to store the initial count value called
CReg[9:0] which is written into the count register bits Count[9:0] when writing the bit Load to ‘1’ in
RegCCntl2. This bit is automatically reset thereafter. The counter value Count[9:0] can be read out at any
time, except when using non-debounced high frequency port A input clock. To maintain data integrity the lower
nibble Count[3:0] must always be read first. The ShCount[9:4] values are shadow registers to the counter. To
keep the data integrity during a counter read operation (3 reads), the counter values [9:4] are copied into these
registers with the read of the count[3:0] register. If using non-debounced high frequency port A input the
counter must be stopped while reading the Count[3:0] value to maintain the data integrity.
In down count mode an interrupt request IRQCount0 is generated when the counter reaches 0. In up count
mode, an interrupt request is generated when the counter reaches 3FF (or FF,3F,F if limited bit counting).
Never an interrupt request is generated by loading a value into the counter register.
When the counter is programmed from up into down mode or vice versa, the counter value Count[9:0] gets
inverted. As a consequence, the initial value of the counter must be programmed after the Up/Down selection.
Loading the counter with hex 000 is equivalent to writing stop mode, the Start bit is reset, no interrupt request
is generated.
How to use the counter;
If PWM output is required one has to put the port B[3] in output mode and set PWMOn=1 in step 5.
1st,
set the counter into stop mode (Start=0).
2nd,
select the frequency and up- or down count mode in RegCCntl1.
3rd,
write the data registers RegCDataL, RegCDataM, RegCDataH (counter start value and
length)
4th,
load the counter, Load=1, and choose the mode. (EvCount, EnComp=0)
5th,
select bits PWMOn in RegPresc and SelIntFull in RegSysCntl1
6th,
if compare mode desired , then write RegCDataL, RegCDataM, RegCDataH (compare value)
7th,
set bit Start and select EnComp in RegCCntl2
8.7 10-bit Counter Registers
Table 8.7.1 Register RegCCntl1
Bit
Name
Reset
R/W
Description
3
Up/Down
0
R/W
Up or down counting
2
CountFSel2
0
R/W
Input clock selection
1
CountFSel1
0
R/W
Input clock selection
0
CountFsel0
0
R/W
Input clock selection
Default : PA0 ,selected as input clock, Down counting
Table 8.7.2 Counter Input Frequency Selection with CountFSel[2..0]
CountFSel2
CountFSel1
CountFSel0
clock source selection
0
0
0
Port A
PA[0]
0
0
1
Prescaler Ck[15]
0
1
0
Prescaler Ck[12]
0
1
1
Prescaler Ck[10]
1
0
0
Prescaler Ck[8]
1
0
1
Prescaler Ck[4]
1
1
0
Prescaler Ck[1]
1
1
1
Port A
PA[3]



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com