I need to use the visulaisation tool to simulate ADC in Codewarrior v5.1 . Please help. I do not have the trainer board.
Suma,
CW for HCS12 v5.1 visulaisation tool doesn't have component for ADC.
debugger can simulate ADC, I suggest you check debugger help manual with key word "Analog to Digital Converter Module"
Have a nice day,
Jun Zhang
Thank you so much for your kind help.We are unable to provide trainer boards to our students, hence I had another question. Have you tried RTI interrupts in full chip simulation mode?
Thanks in advance,
Suma
Sent from Yahoo Mail on Android
On Wed, 15 Apr 2020 at 11:07 am, ZhangJennie<admin@community.nxp.com> wrote:
#yiv9337203280 * #yiv9337203280 a #yiv9337203280 body {font-family:Helvetica, Arial, sans-serif;}#yiv9337203280 #yiv9337203280 h1, #yiv9337203280 h2, #yiv9337203280 h3, #yiv9337203280 h4, #yiv9337203280 h5, #yiv9337203280 h6, #yiv9337203280 p, #yiv9337203280 hr {}#yiv9337203280 .yiv9337203280button td {}
|
NXP Community |
|
Re: Codewarrior debugger to simulate ADC
reply from ZhangJennie in CodeWarrior Development Tools - View the full discussion
Suma,
CW for HCS12 v5.1 visulaisation tool doesn't have component for ADC.
debugger can simulate ADC, I suggest you check debugger help manual with key word "Analog to Digital Converter Module"
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
What specific problem do you have with RTI simulation?
please send me your problem screenshots and demo project.
Thank you. It's a basic counter with RTI interrupts. The isr vectors.c and the vector start up in the prm file have a linked error. After, I removed vector startup in prm , I found the code working. This is an issue with full chip simulation mode. However, with timer interrupts just adding the isr vectors.c is sufficient. I am confused about this setting for each kind of interrupt. Also I copied the isr vectors.c , source file from Codewarrior examples folder and have used the visualisation tool for all simulation.
Regards,
Suma
Sent from Yahoo Mail on Android
On Thu, 16 Apr 2020 at 1:43 pm, ZhangJennie<admin@community.nxp.com> wrote:
#yiv6842597258 * #yiv6842597258 a #yiv6842597258 body {font-family:Helvetica, Arial, sans-serif;}#yiv6842597258 #yiv6842597258 h1, #yiv6842597258 h2, #yiv6842597258 h3, #yiv6842597258 h4, #yiv6842597258 h5, #yiv6842597258 h6, #yiv6842597258 p, #yiv6842597258 hr {}#yiv6842597258 .yiv6842597258button td {}
|
NXP Community |
|
Re: Codewarrior debugger to simulate ADC
reply from ZhangJennie in CodeWarrior Development Tools - View the full discussion
What specific problem do you have with RTI simulation?
please send me your problem screenshots and demo project.
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
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 {}
|
NXP Community |
|
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
Please send me your modified demo project. and also step by step screenshots of how to reproduce your issue.