NPEDUCATIONS, Electronic circuits development, electronics tutorials, microcontroller tutorials and projects, advanced microcontroller (ARM) based tutorials and projects, Embedded c development, Embedded c for ARM cortex M, Intel IoT based projects, IoT projects, CC3200 launch pad projects, MSP430 Launchpad tutorials and projects, Tiva C launch pad tutorials and projects, 8051 tutorials and projects, sensor interfacing with microcontroller tutorials, data communications and networking tutorials, peripheral interfacing with microcontroller, led message scrolling display, arduino based tutorials and projects, intel galileo based tutorials and project, ADC interfacing tutorials, LED Blinking, LCD interfacing, Embedded System tutorials and projects, B.tech projects, M.tech projects, online Embedded C training

Problems in assigning Serial I/O to a PC COM Port

Error 30: undefined name of virtual register while configuring serial port in keil


The serial port can be configured in keil microvision using following two commands


MODE COM1 4800,0,8,1ASSIGN COM1 <SIN >SOUT


some times it shows error 

Error 30: undefined name of virtual register 
this is because the register assigned SIN, SOUT are assigned by the cpu
i.e.,


The names of the input register and output register are defined by the CPU you have selected from the device database. The available VTREGs can be listed with the command DIR VTREG.


Type DIR VTREG at window 
it shows all the registers that are assigned by CPU.






Now type the command by using above names

1> MODE COM1 9600,0,8,1
2>ASSIGN COM1 <DCC_SIN >DCC_SOUT



0 comments :

Post a Comment

Thanks for visiting NPEDUCATIONS. We will contact you soon

0 comments :

Post a Comment

Thanks for visiting NPEDUCATIONS. We will contact you soon

If you really like this tutorial, Don't forget to give the comment or please subscribe to the RSS feed by submitting your E-mail or like our Facebook page.
Related Posts Plugin for WordPress, Blogger...

 
Powered by Blogger