Toogle Speed XMC4500

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User8748
Level 1
Level 1
Hello,

i want to controll a graphical LCD Display with my XMC4500. I have conected pins with the pad class A2 to the databus of my display. Accordinc to the datasheet it schould be possible to toggle A2 pds with about 80 MH. My XMC is coufigured to have a system clock of 120MHz. However i have only a toggle speet of about 1MHz. Do i have to configure something to get a highet toggle speed?

Thank you for your help!

F
0 Likes
1 Reply
Not applicable
Hi didi34,

I was able to get around 20MHz while toggle the pin on Relax Kit.
I think this is quite reasonable as the CPU probably need few clock cycles to load the toggle instruction.
So, for CPU running at 120MHz and toggling at 20MHz, this mean the CPU only took 6 cycles to toggle the pin.
May I know how you toggle your pin?
What I did is just writing the toggle instruction in the while loop:
(this is for toggling pin P0.3)
	
while(1)
{
PORT0->OMR = 0x00080008UL;
}


rgds,
Rou
0 Likes