BASCOM-AVR : Do Nothing Loop : NEWTOPIC
Hello All, Is there anything wrong with performing a Do-Nothing Loop while waiting for a timer to go off? In my case, I have a battery operated device that wakes up from sleep ever 2 seconds, using...
View ArticleBASCOM-AVR : Do Nothing Loop : REPLY
Hi TSEYFARTH, That's quite a accurate of doing the wait, just seems a bit over the top to do a wait. For a wait of only 500uS or 100uS and there's nothing else going on in the main loop, I'd use...
View ArticleVarious : TCPIP to RS232 module : REPLY
Hello Mark I have had no problems but DX was not the point of this post the link is not to them I simply saw it there, it can be obtained elsewhere. I noted in the documentation that it has a program...
View ArticleBASCOM-AVR : Do Nothing Loop : REPLY
Hello Deanus, and thank you for your reply! No, there are a other things in the main loop that are performed during a wake cycle. That was why I was waiting... Tim
View ArticleBASCOM-AVR : Lookup for non-standard data types : NEWTOPIC
Hello everybody, I have to fill more than one variable out of a flash data table. I wanted to use LOOKUP, but that doesn't really work for me. Unfortunately LOOKUP can't be combined with READ. Here...
View ArticleBASCOM-AVR : Minor bug(s) in IDE : NEWTOPIC
Hello mcselec, since Bascom supports projects it became much more professional. Therefore many thanks for this great extension! A little bit annoying is the fact, that i can open the report ("show...
View ArticleBASCOM-AVR : Lookup for non-standard data types : REPLY
Hi Rahalph, The help states. The maximum index value to use is 65535. The first entry will return a value of 0. [b:3141513532]All items in the data table must be of the same data type[/b:3141513532]....
View ArticleBASCOM-AVR : Do Nothing Loop : REPLY
Hi, There's nothing wrong with doing a busy Loop. But as you save your device is battery operated, I'd recommend that you put the CPU to sleep/idle in the Loop, just to save power. Something like:-...
View ArticleBASCOM-AVR : Lookup doesn't work with DWord : NEWTOPIC
Works: [code:1:aa6d6a04b9] Dim L As Long L = Lookup(0 , Table) $data Table: Data 1& , 2& , 3& [/code:1:aa6d6a04b9] Doesn't work: [code:1:aa6d6a04b9] Dim D As Dword D = Lookup(0 , Table)...
View ArticleBASCOM-AVR : Lookup doesn't work with DWord : REPLY
Hi, This is from the help file: Integer and Word constants must end with the %-sign. Long constants must end with the &-sign. Single constants must end with the !-sign. Double constants must end...
View ArticleBASCOM-AVR : Lookup doesn't work with DWord : REPLY
The problem is not the sign at the end of the data values, the problem is that the compiler throws an "wrong data type" error for the dword variable!
View ArticleBASCOM-AVR : Lookup for non-standard data types : REPLY
Thanks Dean for your message, but you didn't really get the problem. I wanted to lookup 9 Bytes out of a Table WITHOUT 9 lookup statements, what would be just a waste of flash and cycles (even in a...
View ArticleBASCOM-AVR : Lookup for non-standard data types : REPLY
Hi Rahalph, why not Read from the actual position in Index? You do not necessarily have to read starting at the label, but you can add to it like you do with the LookUp function. Have a look at the...
View ArticleBASCOM-AVR : Lookup for non-standard data types : REPLY
Hi for_ro, Thanks for your message. Did you mean something like follows?: [code:1:e775ef746f]Dim B1 As Byte Dim B2 As Byte Dim W1 As Word Dim W2 As Word Dim B3 As Byte Dim R(7) As Byte At B1 Overlay...
View ArticleBASCOM-AVR : Reading content of variable with terminal? How? : NEWTOPIC
Hi folks! Is it possible to get the content of a variable from the real uC during it is operating through the hyperterminal or so? I have to know the content of some variables when the device is on...
View ArticleBASCOM-AVR : Reading content of variable with terminal? How? : REPLY
Hi, Just Setup the Serial port on the uC, then use: [code:1:a8a1e4964b] print Variable Name [/code:1:a8a1e4964b] Easy as that. Regards Ian Dobson
View ArticleBASCOM-AVR : Reading content of variable with terminal? How? : REPLY
This is really easy man. Thanks for the advice. On my EasyAvr5 development board I have a com port but ihave to use this feature on the finished device too. Another question pls.: Is it possible to...
View ArticleBASCOM-AVR : Lookup for non-standard data types : REPLY
May be more like this: [code:1:1877ef7eb7]Dim Index As Word Dim B1 As Byte , B2 As Byte , W1 As Word , W2 As Word , B3 As Byte , B4 As Byte Dim Rptr As Iram Word At 8 Overlay Index =...
View ArticleBASCOM-AVR : Reading content of variable with terminal? How? : REPLY
Hi, The uC can do what ever it's been programmed to do :) To answer your question, yes it's possible. Just read the eeprom value into a variable, then print it. Have a look at the help text, it's...
View Article