Hello All, I am using the Keil tools and the MCB2130 eval board until my proto hardware gets built. I have compiled and run just about all the example programs in the Hitex book, really a great resource I got alot out of it! In particular the Timer Capture example which configures P0.2 to function as capture0.0 (timer0). Works great no problem with ISR, rising edge or falling edge. I am setting a break point in the ISR and not trying to step thru the code. Now I have tried to implement my own code to use several capture inputs and use both timer0 and timer1, but it is not working? Everything appears to be configured correctly. After I compile the code, download and run it, I check all the peripheral settings, VIC has an address for each ISR and is enabled, Pin Connect Block shows the cap function selected for desired pins Timer Window verifies that capture channels are configured with rising edge and interrupt. However, only CAP0.2 will consistantly generate the interrupt? Also, when I pull one of the other capture inputs high and do not break in the ISR if I stop the processor and look at the GPIO pin window, it does not detect that the pin is high?? The processor does not seem to be able to read these other pins. The soldering on the processor pins does not look very good to me, so I suspected poor soldering could be the problem, so I tried using a 220 ohm resistor directly on the pin of the chip and it still does not detect that it is high? Most of my testing so far has been with Cap0.0, Cap0.2, Cap1.2 and Cap1.3. I would really appreciate any help or insight you could provide. Thanks, Dave
Message
Capture Inputs on MCB2130
2005-05-09 by drb5599
Attachments
- No local attachments were found for this message.