Hi, I'm new to the XC164 and microcontrollers. I'm trying to setup the Capcom6 unit for a 100% PWM output on COUT60, 61 and 62. In debug mode (uVison2) the registers (under Peripherals T12, T13, CAPCOM6) are not updated when I single step my code. Could anyone help me with the right settings? Best regards /Daniel
Hi guys, Thanks for the update. I am using uVision 3 with the V5.00 compilier (the latest versions at time of writing). It is not easy to realise that a periferal isn't simulated. The other misleading thing is that the Timer12/CAPCOM6 debug windows don't update on either simulated OR ULINKed processor conditions. I thought I was going mad! The irony is that my code for timer 12 was working all along - To prove this I repeatly read the T12 counter into a variable then watched the variable count up and down in the debug enviroment. This seems to be the only way to debug T12/T13/CAPCOM6 stuff in ULINK for the time being.
Hi Gavin, that's one of the ways. I dealt with old CAPCOM6 (tricky) and if I got it working, I had a little bit more understanding. For debugging purposes I misuse a starterboard with hardwired CAPCOM6 outputs and an oscilloscope to see, whether the signalforms are the expected one or not. For simulation your way is surely more practicable. Stefan