Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Bascom IDE Editor

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
16mk

Bascom Member



Joined: 26 Feb 2016
Posts: 19

poland.gif
PostPosted: Thu Mar 02, 2017 3:51 pm    Post subject: Bascom IDE Editor Reply with quote

Hello,

The names of registers are in lower cases in some .bas files but PINx and PORTx always change automatically into upper.
Sometimes they (registers) change into upper in whole file after changing window and return back, but after saving/closing/opening they are lower again
This situation is both with or without .cfg file.
What determine this ?

Regards,

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Mar 02, 2017 4:34 pm    Post subject: Reply with quote

the names of registers defined in the DEF file are only shown in capital. the source itself is not altered. so portB will show as PORTB.
the color is determined by the option settings.

when you open a source for a m2561 and then switch the regfile to say tiny13, only the registers known to tiny13 are shown in capital.

when no $regfile is found in the code, the registers can not be colored the right way.

_________________
Mark
Back to top
View user's profile Visit poster's website
16mk

Bascom Member



Joined: 26 Feb 2016
Posts: 19

poland.gif
PostPosted: Thu Mar 02, 2017 8:45 pm    Post subject: Reply with quote

Two different files, but almost similar.
Beginning of the first one
Code:
$lib "xmega.lib"

$regfile = "xm8e5def.dat"
$crystal = 8000000
$hwstack = 64
$swstack = 40
$framesize = 40
$baud = 4800

Osc_ctrl = &B00_1_0000_0


The same part of second file
Code:
$lib "xmega.lib"

$regfile = "xm8e5def.dat"
$crystal = 8000000
$hwstack = 64
$swstack = 40
$framesize = 40
'$baud = 4800

OSC_CTRL = &B00_1_0000_0


There is $regfile in both and no errors after compiling, so the names are recognized.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum