전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN1753 데이터시트(PDF) 7 Page - STMicroelectronics

부품명 AN1753
상세설명  Software UART using ST7LITE0 12-bit autoreload timer
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1753 데이터시트(HTML) 7 Page - STMicroelectronics

Back Button AN1753 Datasheet HTML 3Page - STMicroelectronics AN1753 Datasheet HTML 4Page - STMicroelectronics AN1753 Datasheet HTML 5Page - STMicroelectronics AN1753 Datasheet HTML 6Page - STMicroelectronics AN1753 Datasheet HTML 7Page - STMicroelectronics AN1753 Datasheet HTML 8Page - STMicroelectronics AN1753 Datasheet HTML 9Page - STMicroelectronics AN1753 Datasheet HTML 10Page - STMicroelectronics AN1753 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 22 page
background image
DocID9986 Rev 2
7/22
AN1753
ST7FLITE0 configuration
3
ST7FLITE0 configuration
3.1
Clock source
This application is implemented using an ST7FLITE0 device with an 8 MHz internal clock.
PLL * 8 is used to generate this 8 MHz clock.
3.2
Input initialization
Two pins of the ST7FLITE0 are used:
PA3: pin of PortA
PA7: pin of PortA with interrupt
Pin PA3 is a normal input/output port pin with no alternate function, used for transmission.
During the initialization, it is configured as an output.
Pin PA7 is a normal input/output port pin with no alternate function, used for data receive.
During the initialization, it is configured as an input. While in receive mode, at start, the
same pin is used with interrupt enabled (“ei1”) to sense the start bit. So this pin is configured
with “pull up interrupt input” by setting PADDR to 0 & PAOR to 1. To set the interrupt
sensitivity “Falling edge only”, you have to set IS11=1 & IS10=0 in the EICR register.
Refer to the device datasheet for a detailed description of the I/O and interrupt control
registers.
3.3
Auto-reload timer register configuration
The AT timer is based on a free running 12-bit upcounter with 12-bit auto reload register
(ATR). Apart from this, it also includes other functions such as PWM signal generator,
Output Compare Function, etc.
The “Output Compare” function is used for this application. To use it, the OE bit must be 0,
otherwise the compare is done with the shadow register instead of the DCRx register. The
software must then write a 12-bit value in the DCR0H and DCR0L registers. When the 12-bit
upcounter (CNTR) reaches the value stored in the DCR0H and DCR0L registers, the
CMPF0 bit in the PWM0CSR register is set and an interrupt request is generated, provided
that the CMPIE bit is set.
The registers that are used in the application note are:
TIMER CONTROL STATUS REGISTER (ATCSR):
CK1, CK0: select the clock frequency of the counter.
For fcounter = fcpu, set CK1=1 and CK0=0
CMPIE: allows to mask the interrupt generation when the CMPF bit is set:
0: the CMPF interrupt is disabled
1: the CMPF interrupt is enabled
CMPIE
OVFIE
OVF
CK0
CK1
0
0
0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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