STMicroelectronics /STM32G0B1 /USART1 /GTPR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as GTPR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)PSC0GT

PSC=B_0x0

Description

Guard time and prescaler register

Fields

PSC

Prescaler value In IrDA low-power and normal IrDA mode: PSC[7:0] = IrDA Normal and Low-Power baud rate PSC[7:0] is used to program the prescaler for dividing the USART source clock to achieve the low-power frequency: the source clock is divided by the value given in the register (8 significant bits): In Smartcard mode: PSC[4:0] = Prescaler value PSC[4:0] is used to program the prescaler for dividing the USART source clock to provide the Smartcard clock. The value given in the register (5 significant bits) is multiplied by 2 to give the division factor of the source clock frequency: … 0010 0000: Divides the source clock by 32 (IrDA mode) … 1111 1111: Divides the source clock by 255 (IrDA mode) This bitfield can only be written when the USART is disabled (UE = 0). Note: Bits [7:5] must be kept cleared if Smartcard mode is used. This bitfield is reserved and forced by hardware to '0’ when the Smartcard and IrDA modes are not supported. Refer to .

0 (B_0x0): Reserved - do not program this value

1 (B_0x1): Divides the source clock by 1 (IrDA mode) / by 2 (Smarcard mode)

2 (B_0x2): Divides the source clock by 2 (IrDA mode) / by 4 (Smartcard mode)

3 (B_0x3): Divides the source clock by 3 (IrDA mode) / by 6 (Smartcard mode)

31 (B_0x1F): Divides the source clock by 31 (IrDA mode) / by 62 (Smartcard mode)

GT

Guard time value This bitfield is used to program the Guard time value in terms of number of baud clock periods. This is used in Smartcard mode. The Transmission Complete flag is set after this guard time value. This bitfield can only be written when the USART is disabled (UE = 0). Note: If Smartcard mode is not supported, this bit is reserved and must be kept at reset value. Refer to .

Links

()