Author |
Message |
Topic: mixing two bytes to form WORD |
hgrueneis
Replies: 13
Views: 919
|
Forum: BASCOM-AVR Archive Posted: Fri Jun 04, 2010 3:14 pm Subject: mixing two bytes to form WORD |
MWS,
thank you, a good way to demonstrate overlay.
The statement that overlay does not use any code is in my opinion not quite true. You can compare it somewhat to the "DB" and "DW" directives in as ... |
Topic: mixing two bytes to form WORD |
hgrueneis
Replies: 13
Views: 919
|
Forum: BASCOM-AVR Archive Posted: Fri Jun 04, 2010 1:09 am Subject: mixing two bytes to form WORD |
Hi MWS,
Thank you for posting the overlay possibility. I always avoided it, probably because I was too lazy to read the full HELP on it and it's possibilities.
It is really the most simple , elegant ... |
Topic: I2C address issues |
hgrueneis
Replies: 10
Views: 860
|
Forum: BASCOM-AVR Archive Posted: Thu Jun 03, 2010 3:00 pm Subject: I2C address issues |
If you have a chip to be programed as a slave, then you need the slave library. Sold at the mcselec shop.
It works well (I bought it).
Hubert |
Topic: mixing two bytes to form WORD |
hgrueneis
Replies: 13
Views: 919
|
Forum: BASCOM-AVR Archive Posted: Wed Jun 02, 2010 11:05 pm Subject: mixing two bytes to form WORD |
All you have to do now, find out what takes less time....multiply or shift.
Hubert |
Topic: Two DC motor and two encoder - synchronization. How to? |
hgrueneis
Replies: 4
Views: 538
|
Forum: BASCOM-AVR Archive Posted: Wed Jun 02, 2010 3:01 pm Subject: Two DC motor and two encoder - synchronization. How to? |
You can count the pulses with two inputs for interrupts. With two ISR's you can compare the counts. Depending on the differance correct the number for the PWM's. This way you can incorporate a GAIN fa ... |
Topic: mixing two bytes to form WORD |
hgrueneis
Replies: 13
Views: 919
|
Forum: BASCOM-AVR Archive Posted: Wed Jun 02, 2010 2:49 pm Subject: mixing two bytes to form WORD |
The simplest way is to use "SHIFT" and addition.
I do not know if writing the bytes to a 16-bit register and then assigning it to the variable would be faster.
The easy way is to: Copy contents of h ... |
Topic: Please Help! |
hgrueneis
Replies: 6
Views: 384
|
Forum: BASCOM-AVR Archive Posted: Tue Jun 01, 2010 2:42 pm Subject: Please Help! |
LOOK AT THE HELP FILE.
YOU NEED A VARIABLE FOR "ISCHARWAITING"!
SOMETHING LIKE THIS:
'DIM A,B,C AS WHATEVER (BYTES,WORDS,....)
DIM X AS BYTE
DO
X=ISCHARWAITING() ' FOR CHANNEL ONE YOU NEED ... |
Topic: newbie problems with timer |
hgrueneis
Replies: 6
Views: 487
|
Forum: BASCOM-AVR Archive Posted: Mon May 24, 2010 10:03 pm Subject: newbie problems with timer |
Hi Andrej,
Have done more test out of interest.
The counter does not seem to connect to the system clock if not at least a prescale of "1" is configured.
The following works for me on the simulator ... |
Topic: newbie problems with timer |
hgrueneis
Replies: 6
Views: 487
|
Forum: BASCOM-AVR Archive Posted: Mon May 24, 2010 9:10 pm Subject: newbie problems with timer |
Try this:
$regfile = "m16def.dat"
$crystal = 11059200
$baud = 57600
$hwstack = 64
$swstack = 20
$framesize = 80
Config Timer0 = Counter , Prescale = 1024
Timer0 = 0
Do
Print Timer0
Loop ... |
Topic: Atmega shows alphanumeric Signs on 7 segment LED Display |
hgrueneis
Replies: 13
Views: 2705
|
Forum: BASCOM-AVR Archive Posted: Wed May 19, 2010 6:30 am Subject: Atmega shows alphanumeric Signs on 7 segment LED Display |
Adrian is right! In a previous project I have used a 16x2 (required negative for contrast input and 5 volt + supply per data sheet) LCD with a processor voltage of 3.3V. Generated a negative (7660) su ... |
Topic: Atmega shows alphanumeric Signs on 7 segment LED Display |
hgrueneis
Replies: 13
Views: 2705
|
Forum: BASCOM-AVR Archive Posted: Sun May 16, 2010 4:46 pm Subject: Atmega shows alphanumeric Signs on 7 segment LED Display |
Like ROSS already said.....DC/DC conversion for approx. $1! See for example ..7660 for positive and negative. LCDs usually only need a few mA.
You can get them in DIP and SOIC.
Hubert |
Topic: ATtiny 87 / 167 ? |
hgrueneis
Replies: 4
Views: 304
|
Forum: BASCOM-AVR Archive Posted: Thu May 13, 2010 10:22 pm Subject: ATtiny 87 / 167 ? |
Did not find them in the purchased version either. Why not send an email to Support and ask for a definition file ...if available?
Hubert |
Topic: PWM circuit for driving LCD backlight |
hgrueneis
Replies: 8
Views: 1247
|
Forum: BASCOM-AVR Archive Posted: Wed May 12, 2010 1:13 am Subject: LCD backlight |
You will have to come up with more info, What model of LCD? What kind of backlight LED or high voltage?
A method I often use (if it is only 5V and up to 1.5A) is a cmos driver chip MIC4427 (available ... |
Topic: EEPROM write |
hgrueneis
Replies: 12
Views: 1078
|
Forum: BASCOM-AVR Archive Posted: Wed May 05, 2010 6:13 pm Subject: EEPROM write |
You will have to split up the LONG into bytes with commands (low, high, highw) see Help File. First words then bytes. To read or write you can use READEEPROM, WRITEEEPROM with labels. Also see Help.
... |
Topic: looking for xmega.lib |
hgrueneis
Replies: 2
Views: 567
|
Forum: BASCOM-AVR Archive Posted: Tue May 04, 2010 2:32 am Subject: looking for xmega.lib |
Read some time ago, that the demo does not support XMEGA.
You will have to purchase the full license.
Hubert |
|