









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Explore the integration of peripherals such as timers, counters, and serial transmission using uarts in embedded systems. Learn about timer structures, counter functions, and serial transmission techniques. Discover the role of parity, baud rate, and synchronization in uart communication.
Typology: Slides
1 / 17
This page cannot be seen from the preview
Don't miss anything!










or counter
16-bit up counter
Clk 16
Cnt_in
2x mux
Mode
Timer/counter
Top
Reset
Cnt
Top
Time with prescaler
16-bit up counter
Clk Prescaler
Mode
16-bit up counter
Clk 16
Terminal count
Top
Reset
Timer with a terminal count
Cnt
16-bit up counter
Clk
16-bit up counter
Cnt
Top
16/32-bit timer
Cnt
scalereg
checkreg
timereg to system reset or interrupt
osc clk prescaler
Top overflow
12 MHz 1MHz^ 11 bit Up X counter
16 bit Up counter 0 disable 1 enable
/* main.c */
main(){ wait until card inserted call watchdog_reset_routine
while(transaction in progress){ if(button pressed){ perform corresponding action call watchdog_reset_routine }
/* if watchdog_reset_routine not called every < 2 minutes, interrupt_service_routine is called */ }
watchdog_reset_routine(){ /* checkreg is set so we can load value into timereg. Zero is loaded into scalereg and 11070 is loaded into timereg */
checkreg = 1 scalereg = 0 timereg = 5535 }
void interrupt_service_routine(){ eject card reset screen }
embedded 1 device 0 0 1
Sending UART
Receiving UART
start bit data
end bit
1 0 0 1 1 0 1 1