Hello, I am trying to use CC60 and COUT60 on the XC167 to generate a simple PWM generation with CAPCOM6. I am debugging using the µVision3. My problem is that my program and the PWM signals runs well on the debugger, I see the pins values with Logic analyzer. However, the port pins P1L_P0 and P1L_P1 on the card remain low. With the same declarations (except ALTSEL) I received something on an other port (P7.P5). I have disabled the EBC (EBCMOD0 = 0x7430 & EBCMOD1 = 0x003F). The port pins are set to output everywhere in my program but still no output. With the reload values of these registers, the LED's (port 2)and the monitor(port 3) works fine, but when I enter the new values, they work no more. Where is the problem? Thanks
I acknowledge that I had difficulties to understand your answer, my knowledge of multiplexed bus is limited, and I had difficulties to find this /EA pin. So /EA pin is disabled, like default settings, and nothing works when I put this pin high (CAN, PWM, LEDs, Monitor), but I receive a rectangle signal on the port P1L!!!!! (strange...) What concerns the multiplexed bus, I don't use it because, when I disable the EBC in Dave (to permit to use the port 1L as GPIO), he disable automatically the bus type selection in chip select control. All of that makes me take a look at other things in start file and now I have an upgrade to my situation: I receive my PWM signal on P1L... BUT (lol!) now the CAN bus and the monitor don't work anymore!!! The mistake was that everythings was not disabled with EBC (one chip select register:FCONCS0 was still enable)(microcontroller is funny: you solve a problem and you have an other one immediatly!) Thanks for the answer for CAN node B, I will look at it after solving this problem. I am however interested with your example. Thanks a lot. Damien damien.genoist@daimlerchrysler.com
Ok, sent...