Introduction
This heading list will be heavily moderated. Post and discuss the potential bugs here, and we will compile a concise list in this sticky post. After defining the trouble, the information will be added here, and the original posts will be removed. Please restrict the posts to programming issues concerning the Atom, Atom-Pro 28 modules only.
The main difference in these IDEs is that all arguments are 32-bit instead of 16-bit. There is more information on the Basic Micro website.
Bot Board / Atom 28: IDE version 5.3.0.0
The pin number isn’t being properly handled in the ADIN command. In the mbasicadin.lib file(the directory should be C:\Program Files\BasicMicro Inc\BasicAtom IDE\system\MBasic14) you need to add the three lines of code that are marked in the ADIN_INIT subroutine to fix the problem. There should be a new update to the IDE in a week or so.
[code]_ADIN_INIT
clrf ADCON0 ; Reset ADCON0
bsf ADCON0,0 ; Enable A/D converter
movfw _ADIN_SETUP
_@BANK _WORK,ADCON1 ; Sel ADCON1 bank
movwf ADCON1&0x7f ; Load ADCON1
_@BANK ADCON1,_WORK ; Sel WORK bank
_@CALL _GETPIN ;Add this line
movfw _STACK+1 ;Add this line
movwf _ADIN_PIN ;Add this line
clrf _ADIN_WORK
_@ADCHANNEL _ADIN0,b'00000000'
_@ADCHANNEL _ADIN1,b'00001000'
_@ADCHANNEL _ADIN2,b'00010000'
_@ADCHANNEL _ADIN3,b'00011000'
_@ADCHANNEL _ADIN4,b'00100000'
_@ADCHANNEL _ADIN5,b'00101000'
_@ADCHANNEL _ADIN6,b'00110000'
_@ADCHANNEL _ADIN7,b'00111000'
_@ADCHANNEL _ADIN8,b'00000010'
_@ADCHANNEL _ADIN9,b'00001010'
movfw _ADIN_WORK ; Get Channel
iorwf ADCON0,f ; IOR ADCON0[/code]
Bot Board / Atom-Pro 28: IDE version 8.0.0.0
None.