Answer the question
In order to leave comments, you need to log in
Card timing issue?
Hello. I am making a card reader project using LPC11u12, which has the built-in ability to communicate with a smart card via UART. To ensure the desired frequency, you need to fill in the DLL and DLM registers according to the following rule:
uint32_t divider = ((( sys_clk / ((F/D) / 2) ) / baudrate + 1) >> 1;
LPC_USART->DLM = (divider >> 8) & 0xff;
LPC_USART->DLL = divider & 0xff;
uint32_t divider = (((sys_clk * 2) / Freq) + 1) >> 1;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question