Dear Jun,
Thanks a bunch.
I just modified your code to toggle LED connected to PORTB in the visualisation tool with a delay generated by RTI . The code debugs , but the LED does not toggle.
REgards,
Suma
#include <hidef.h> /* common defines and macros /#include "derivative.h" / derivative-specific definitions */
int counter;
void main(void) { /* put your own code here */ DDRB=0XFF; counter=0; RTICTL= 0x51; CRGINT = 0x80; // enable RTI interrupts EnableInterrupts;
for(;;) { FEEDCOP(); /* feeds the dog / } / loop forever / / please make sure that you never leave main */}
#pragma CODE_SEG __NEAR_SEG NON_BANKEDvoid interrupt 7 RTI() { if (counter==500){ PORTB=0b00000001; } else{ counter++ ; } CRGFLG = 0x80; } #pragma CODE_SEG DEFAULT
On Friday, April 17, 2020, 01:59:13 PM GMT+4, ZhangJennie <admin@community.nxp.com> wrote:
#yiv8636840290 * #yiv8636840290 a #yiv8636840290 body {font-family:Helvetica, Arial, sans-serif;}#yiv8636840290 #yiv8636840290 h1, #yiv8636840290 h2, #yiv8636840290 h3, #yiv8636840290 h4, #yiv8636840290 h5, #yiv8636840290 h6, #yiv8636840290 p, #yiv8636840290 hr {}#yiv8636840290 .yiv8636840290button td {}
|
|
Re: Codewarrior debugger to simulate ADC
reply from ZhangJennie in CodeWarrior Development Tools - View the full discussion
Suma,
I attach a CW for hcs12 v5.1 RTI demo code to you. the RTI can work well in simulation mode. Just FYI.
Have a nice day,
Jun Zhang
Reply to this message by replying to this email, or go to the message on NXP Community |
Start a new discussion in CodeWarrior Development Tools by email or at NXP Community |
Following Re: Codewarrior debugger to simulate ADC in these streams: Inbox |
This email was sent by NXP Community because you are a registered user.
You may unsubscribe instantly from NXP Community, or adjust email frequency in your email preferences