I'm using a standard java-card(2.2.2) which actually is asynchronous smart card.Based on your code after running below code:
CardClockOn(); /* Start clock at Ta */
//-----------------------------definition of CardClockOn function----
static __INLINE void CardClockOn(void)
{
// SC_PWM->TCR = _BV(0);
LPC_IOCON->PIO0_17 |= 0x03; /* UART SCLK */
}
As you can see inside body of CardClockOn(),only usart_clock function assign to the p0.17 and that's all,
Then how this cause clock generation on the p0.17 pin ? I also checked this pin with logic analyzer and there not any lock frequency on this pin.
-----------------
Also user manual explicitly said :
Synchronous mode should not be used with smart card mode.
Then how we can use USART0_Clock pin for providing clock to the card?
---------
Also from 11.7.8 Smart card mode(user manual)
The USART0 SCLK pin will output
synchronously with the data and at the data bit rate and may not be adequate for most
asynchronous cards.
With best regards.