Author |
Message |
Topic: Multiplication by a fraction |
Inventor-George
Replies: 3
Views: 697
|
Forum: BASCOM-AVR Posted: Wed Nov 22, 2023 6:39 am Subject: Multiplication by a fraction |
Thank you, JC for the discussion. I am using the mega8 processor.
I will want only the integer part of the compilation. You have also given me the answer on how to do that. |
Topic: Multiplication by a fraction |
Inventor-George
Replies: 3
Views: 697
|
Forum: BASCOM-AVR Posted: Wed Nov 22, 2023 1:26 am Subject: Multiplication by a fraction |
I am setting a variable to the output of ADC(1). I need to then multiple that variable by a fraction (BASCOM-AVR version : 2.0.8.6 ) |
Topic: Can't get ADC to work |
Inventor-George
Replies: 2
Views: 2106
|
Forum: BASCOM-AVR Posted: Thu Oct 05, 2023 1:09 am Subject: Can't get ADC to work |
I am using a mega8 in a simple circuit.
My code compiles without error, and the chip programs also without error.
The code snippet that relates to this question is;
dim dato word
start adc
dato ... |
Topic: Why are lines in italics? |
Inventor-George
Replies: 1
Views: 1974
|
Forum: BASCOM-AVR Posted: Wed Sep 27, 2023 8:18 pm Subject: Why are lines in italics? |
I'm an old-timer user of BASCOM. I retired almost 8 years ago, but now starting a new project.
I started writing code, but after some startup stuff, I added a few lines of aliases. From the alias l ... |
Topic: Wierd commented out lines |
Inventor-George
Replies: 1
Views: 2290
|
Forum: BASCOM-AVR old unsupported versions Posted: Fri May 05, 2023 11:49 pm Subject: Wierd commented out lines |
I have been away from BASCOM for about 6 years - I retired, now want to build something.
I loaded the last version of BASCOM I used, version 2.0.8.0. I had my old lic file, hoping it is still good. ... |
Topic: Getting back in the saddle |
Inventor-George
Replies: 1
Views: 681
|
Forum: BASCOM-AVR Posted: Fri Jul 29, 2022 12:08 am Subject: Getting back in the saddle |
I spent years creating with AVRs, then retired about 7 years ago. Now I want to get back into the game.
I opened an old BAS file in the BASCOM editor and looked around. I reset the chip to the M128 ... |
Topic: Programming the Atmega128 |
Inventor-George
Replies: 2
Views: 349
|
Forum: BASCOM-AVR Posted: Tue Feb 04, 2020 11:25 pm Subject: Programming the Atmega128 |
Can I program this chip directly from BASCOM, using a USB programmer, or do I need to use Studio to interface with the programmer?
If I can, what programmer is preferred? I have several AVRUSB device ... |
Topic: How long for AVR series? |
Inventor-George
Replies: 1
Views: 2063
|
Forum: AVR Posted: Thu Sep 19, 2019 4:52 pm Subject: How long for AVR series? |
Does anyone have information on how much longer Microchip will continue the AVR series uPs?
I am about to start a new project, using an Xmega, and of course BASCOM. My concern is how long I can count ... |
Topic: Storing word variables in Xmega EEPROM |
Inventor-George
Replies: 4
Views: 690
|
Forum: BASCOM-AVR Posted: Sat Mar 25, 2017 12:15 am Subject: Storing word variables in Xmega EEPROM |
I figured out how to handle this. Thank you! It works.
To save to Eeprom, do I simply set address for every OTHER location? Like location 2,4,6,8? |
Topic: Storing word variables in Xmega EEPROM |
Inventor-George
Replies: 4
Views: 690
|
Forum: BASCOM-AVR Posted: Fri Mar 24, 2017 11:50 pm Subject: Storing word variables in Xmega EEPROM |
HI Evert:
I tried this:
Dim myword1 As Eram Word
Dim myword2 As Eram Word
myword1 = 33123
writeeeprom myword1, 10
readeeprom myword2, 10
lcd myword2
I get the following errors
Err ... |
Topic: Storing word variables in Xmega EEPROM |
Inventor-George
Replies: 4
Views: 690
|
Forum: BASCOM-AVR Posted: Fri Mar 24, 2017 5:24 pm Subject: Storing word variables in Xmega EEPROM |
I am using the xmega128A4U device.
I need to store over a hundred word variables in eeprom.
I can't find anything about this in the help files. Do I have to split the word into two bytes, store in t ... |
Topic: Newbie question re: ports |
Inventor-George
Replies: 5
Views: 374
|
Forum: BASCOM-AVR Posted: Mon Mar 20, 2017 1:40 am Subject: Newbie question re: ports |
Jc, I tried that, and get the same results. I have 2 LEDs, tied to C.2 and C.3 [through a 1K resistor]. I am starting to wonder if I have a bad uP??
Hate to butcher a board, but I am going to jumper ... |
Topic: Newbie question re: ports |
Inventor-George
Replies: 5
Views: 374
|
Forum: BASCOM-AVR Posted: Sun Mar 19, 2017 11:13 pm Subject: Newbie question re: ports |
HI Mark:
Thank you for the input. I am still unable to get a port working - I tried config port, I again tried setting the DDR register. I searched your site for the "genetric Xmega" PDF, but can't ... |
Topic: Newbie question re: ports |
Inventor-George
Replies: 5
Views: 374
|
Forum: BASCOM-AVR Posted: Sun Mar 19, 2017 6:51 pm Subject: Newbie question re: ports |
I have no problems controlling ports in tinys or megas, however, controlling the xmega ports eludes me.
I set a pin using the following:
Config Xpin = PortC.3 , Outpull = totum
I just want a s ... |
Topic: Not sure about programmer |
Inventor-George
Replies: 1
Views: 2279
|
Forum: AVR Posted: Fri Mar 17, 2017 7:40 pm Subject: Not sure about programmer |
I bought a programmer from a Polish company - Eltronics. Says it is fully compatible with the AVRISP from Atmel. (BASCOM-AVR version : 2.0.7.8 ) |
|