Open swleungbrian opened 4 years ago
Sorry for the super later reply, this code was for testing purposes only, and unfortunately the conclusion is that CH554 is not capable of handling PD communication. The time taken for decoding and verifying each message is longer than the inter-frame gap, even with the help of manually written assembly. So I have given up.
@rikka0w0 I can confirm 24M clock is not enough to decode BMC in real-time with C (sdcc), while the CH549 can do it in C on 40MHz clock. However, with some assembly optimizations, it is possible to receive BMC with 24M Clock on CH552.
i tried the code. connection detected and started to receive pd messages on cc1 pin (P1.4). Yet no gpip interrupts received. The cc1 signal swings between 0 to 1V only and wonder if it is too low to generate interrupts. Any special hardware settings i have to take care?
Thanks
Brian