Electronic Components Datasheet Search
  English  ▼

X  

ST9 Datasheet(PDF) 109 Page - STMicroelectronics

Part # ST9
Description  USER GUIDE
PDF  146 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST9 Datasheet(HTML) 109 Page - STMicroelectronics

Back Button ST9 Datasheet HTML 105Page - STMicroelectronics ST9 Datasheet HTML 106Page - STMicroelectronics ST9 Datasheet HTML 107Page - STMicroelectronics ST9 Datasheet HTML 108Page - STMicroelectronics ST9 Datasheet HTML 109Page - STMicroelectronics ST9 Datasheet HTML 110Page - STMicroelectronics ST9 Datasheet HTML 111Page - STMicroelectronics ST9 Datasheet HTML 112Page - STMicroelectronics ST9 Datasheet HTML 113Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 109 / 146 page
background image
109/146
ST9 USER GUIDE
Table 11.
SCI.C Functions
4.8.2.5 TIMER File
Standard Timer function file is <st\timer.c> and contains 6 functions that are initialized for gen-
erating a simple PWM signal using the Standard Timer (programmable duty cycle).
Port used:
– STDOUT
Table 12.
TIMER.C Functions
FUNCTION
DESCRIPTION AND COMMENTS
void INIT_SCI(void);
Initialization of general parameters dedicated to the SCI:
- Baud Rate Generator: 9600 bauds.
- Characters: Eight data bits, one stop bit, odd parity.
- Pins...
The baud rate generator must be initialized following this structure
(BRGHR first and BRGLR at the end).
void INIT_SCI_IT(void);
Initialization of the IT: vector, priority.
The only interrupt which is enabled is “character match”.
void
INTSCI_ReceiveMatch(void);
This interrupt subroutine occurs when the SCI cell has received the
matching character.
In this example, it displays 0 on a 7-segment LED connected to port 4.
FUNCTION
DESCRIPTION AND COMMENTS
void INIT_ST(void);
Standard Timer initialization.
It must be used before any use of the ST.
It initializes the value loaded into the prescaler and into the counter.
To use the ST in output mode, you must initialize the output pin in push-
pull, alternate function. This means (PXC0R,PXC1R,PXC2R) = (1,1,0).
void START_ST(void);
Starts the Standard Timer.
void STOP_ST (void);
Stops the timer counter.
void INIT_ST_IT(void);
This routine configures the interrupts after each End of Count.
Don't forget to initialize your start-up file correctly.
void Enable_ST_IT(void);
Enables the Standard Timer Interrupt.
void
INTST_EndCount(void);
Interrupt subroutine which occurs after an end of count.



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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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