Author |
Message |
Topic: Geting byte from two nibbles |
MWS
Replies: 8
Views: 357
|
Forum: BASCOM-AVR Archive Posted: Thu Dec 22, 2011 9:45 am Subject: Geting byte from two nibbles |
Just in case faster and leaner code than picking bit-by-bit is needed:
Dim Decimal_value As Byte
!IN R16, PINA
!SWAP R16
!ANDI R16, &b00001111
!IN R17, PINC
!ANDI R17, &b1111 ... |
Topic: Key pressing without Enter |
MWS
Replies: 7
Views: 385
|
Forum: BASCOM-AVR Archive Posted: Wed Dec 21, 2011 2:13 pm Subject: Key pressing without Enter |
But one problem now. I want delete Terminal with "Esc"
Case "Esc" : Print "{027}
"Delete" is rather the wrong expression, clear screen would be better.
This sequence works for an ANSI/VT100 termi ... |
Topic: LCD Menu - Inverse text |
MWS
Replies: 27
Views: 2205
|
Forum: BASCOM-AVR Archive Posted: Wed Dec 21, 2011 9:58 am Subject: LCD Menu - Inverse text |
For a limited amount of negative text, it would be possible to use DEFLCDCHAR, which allows for 8 different custom characters.
These 8 chars can be defined and redefined at any time, but are always v ... |
Topic: Com Port Confusion |
MWS
Replies: 7
Views: 646
|
Forum: BASCOM-AVR Archive Posted: Tue Dec 20, 2011 10:24 pm Subject: Com Port Confusion |
In what context do you see "channel" ? Channel is referenced by the help to what you call #number, this number you can choose yourself within the range described by the help.
Without having it chec ... |
Topic: question : about time$ |
MWS
Replies: 26
Views: 972
|
Forum: BASCOM-AVR Archive Posted: Tue Dec 20, 2011 2:20 pm Subject: question : about time$ |
Hi Ennio,
that was flattered
Of course I can be wrong and I was in cases, when I was too lazy or not thorough enough.
Merry Christmas also to you. |
Topic: Com Port Confusion |
MWS
Replies: 7
Views: 646
|
Forum: BASCOM-AVR Archive Posted: Tue Dec 20, 2011 2:14 pm Subject: Re: Com Port Confusion |
I have to admit it took me quite a while to sort out the ( for me totally illogical) numbering of the ports and this is what I conclude:
We don't know the hardware you use, would you make clear what' ... |
Topic: question : about time$ |
MWS
Replies: 26
Views: 972
|
Forum: BASCOM-AVR Archive Posted: Mon Dec 19, 2011 6:40 pm Subject: question : about time$ |
Visovian,
but I noticed that the jumps in ISR are probably ok.
the non-regular exits via second and third return are a problem, have a look at the assembler code, abbreviated for better readability. ... |
Topic: Key pressing without Enter |
MWS
Replies: 7
Views: 385
|
Forum: BASCOM-AVR Archive Posted: Mon Dec 19, 2011 4:27 pm Subject: Key pressing without Enter |
Input waits for CR, if you need only one char, use waitkey() with your code. |
Topic: question : about time$ |
MWS
Replies: 26
Views: 972
|
Forum: BASCOM-AVR Archive Posted: Mon Dec 19, 2011 2:16 pm Subject: question : about time$ |
can you tell me why occur this?
Easy to answer, because your code is crap and it shows this behavior because the µC reboots.
Stack/frame-definitions are missing, waits in the ISR, that's a nogo, t ... |
Topic: question : about time$ |
MWS
Replies: 26
Views: 972
|
Forum: BASCOM-AVR Archive Posted: Sun Dec 18, 2011 11:39 am Subject: question : about time$ |
copy & paste error MWS
Always these copycatters
If we don't get in touch again in the meantime, Happy Holidays.http://www.mcselec.com/components/com_forum/files/chrtr_183.png |
Topic: question : about time$ |
MWS
Replies: 26
Views: 972
|
Forum: BASCOM-AVR Archive Posted: Sun Dec 18, 2011 11:21 am Subject: question : about time$ |
Hi Michael,
it's not a good style...
Ocr1ah = High(reload)
Ocr1al = Low(reload)
Tccr1a = 0
Set Tccr1b.3
talking about style, shown code is not good style either ... |
Topic: Hi....help needed |
MWS
Replies: 12
Views: 1162
|
Forum: BASCOM-AVR Archive Posted: Sat Dec 10, 2011 1:23 pm Subject: Hi....help needed |
Can anyone help that is already a registered user in that forum ?
After clicking the "Download" button, you get asked whether you agree to the license for this code, if you agree you have to click " ... |
Topic: SD logger |
MWS
Replies: 21
Views: 1840
|
Forum: BASCOM-AVR Archive Posted: Thu Dec 08, 2011 9:02 am Subject: SD logger |
..., it only allows to interface a USB memory stick with an AVR. You cannot connect a host PC to the device as well. AFAIK you cannot use the Vinculum chip as a 'bridge' between two USB devices.
Th ... |
Topic: Silly array question |
MWS
Replies: 3
Views: 235
|
Forum: BASCOM-AVR Archive Posted: Wed Dec 07, 2011 8:48 pm Subject: Silly array question |
Not sure why - which is the basis for this post.
Tim,
I can assure you that this code with Bascom version 2.0.7.3 sends exactly 10 bytes, no additional byte. Simulated with AVR-Studio.
WArr(1 ... |
Topic: Silly array question |
MWS
Replies: 3
Views: 235
|
Forum: BASCOM-AVR Archive Posted: Wed Dec 07, 2011 9:44 am Subject: Silly array question |
First, if you'd show compilable code, the members here would be more able to think about the reason than to do guesswork about the dimensioning of variables.
The problem is improper use of the numb ... |
|