سلام دوستان
همون طور که میدونید این کل تنظیمات C18 واسه USART هست:
و
حالا سوال اینه که تنضیمات مربوط به Parity , Stop bit کجان؟
همون طور که میدونید این کل تنظیمات C18 واسه USART هست:
کد:
Interrupt on Transmission: USART_TX_INT_ON Transmit interrupt ON USART_TX_INT_OFF Transmit interrupt OFF Interrupt on Receipt: USART_RX_INT_ON Receive interrupt ON USART_RX_INT_OFF Receive interrupt OFF USART Mode: USART_ASYNCH_MODE Asynchronous Mode USART_SYNCH_MODE Synchronous Mode Transmission Width: USART_EIGHT_BIT 8-bit transmit/receive USART_NINE_BIT 9-bit transmit/receive Slave/Master Select*: USART_SYNC_SLAVE Synchronous Slave mode USART_SYNC_MASTER Synchronous Master mode Reception mode: USART_SINGLE_RX Single reception USART_CONT_RX Continuous reception Baud rate: USART_BRGH_HIGH High baud rate USART_BRGH_LOW Low baud rate
کد:
Clock Idle State: BAUD_IDLE_CLK_HIGH Clock idle state is a high level BAUD_IDLE_CLK_LOW Clock idle state is a low level Baud Rate Generation: BAUD_16_BIT_RATE 16-bit baud generation rate BAUD_8_BIT_RATE 8-bit baud generation rate RX Pin Monitoring: BAUD_WAKEUP_ON RX pin monitored BAUD_WAKEUP_OFF RX pin not monitored Baud Rate Measurement: BAUD_AUTO_ON Auto baud rate measurement enabled BAUD_AUTO_OFF Auto baud rate measurement disabled
دیدگاه