Professional Documents
Culture Documents
Slide (9-12)
Slide (9-12)
Slide (9-12)
SIMD
The keyword weak means that another non-weak subroutine with the same name defined
elsewhere can override this one
Does not return anything as called by hardware and ISRs (excluding SVC_Handler) do not
take any input argument
IVT address = 0x00000004
NVIC
The nested vectored interrupt controller (NVIC) is built into Cortex-M cores to manage all
interrupts
Enable and disable interrupts
Configure the preemption priority and sub-priority of a specific interrupt
Set and clear the handing bit of a specific interrupt
ISER - Enable bit, ICER - Disable bit
32bit 8 registers for both above
Execution
USART_CR1
Bit 13 UE: USART enable
Bit 12 M: Word length, 0: 1 Start bit, 8 Data bits, n Stop bit 1: 1: 1 Start bit, 9 Data bits, n
Stop bit
Bit 3 TE: Transmitter enable
Bit 2 RE: Receiver enable
USART_SR
Bit 7 TXE: Transmit data register empty (E for EMPTY)
Bit 5 RXNE: Read data register not empty (NE for NOT EMPTY)
Bit 6 TC: After writing the last data into the USART_DR register, wait until TC=1. This
indicates that the transmission of the last frame is complete
CODE
Prev - Slides (5-8)