In my current project, I'm trying to implement a smart card reader using LPC1788 which has a built-in smart card interface. Smart cards use the ISO7816-3 standard to communicate with the outside world. Smart cards need clocks which must be between 1MHz to 5MHz. This clock will be used to generate a baudrate with a fraction that is implemented in the card as default. ISO7816 states that if I connect a 3.58MHz signal to the card, the baudrate will be 9600.
On the other hand, the LPC1788 datasheet states that:
If the smart card to be communicated with requires (or may require) a clock, program one IOCON register for the UART SCLK function. The UART will use it as an output.
Then it states:
Enable the UART clock and set up UART clocking for an initial UART frequency of 3.58 MHz.
So I'm confused! If I set the baudrate to 9600 and program UART SCLK , will I get 3.58 MHz?
What does it mean by: "set up UART clocking for an initial UART frequency of 3.58 MHz"?
How can I do that?