Author |
Message |
Topic: XMEGA ADCB reading Weird |
laborratte
Replies: 2
Views: 365
|
Forum: BASCOM-AVR Posted: Mon Nov 29, 2021 11:55 am Subject: XMEGA ADCB reading Weird |
Did you check JTAG Fuse?
And, from Errata Rev. L in Datasheet: 14. ADC is non-functional in SE unsigned mode with VREF below 1.8V
When the ADC is used on single ended unsigned mode and VREF is bel ... |
Topic: problem with 40x4 LCD |
laborratte
Replies: 16
Views: 1106
|
Forum: BASCOM-AVR Posted: Wed Oct 27, 2021 8:47 pm Subject: problem with 40x4 LCD |
As for the first point, it is possible to overwrite the two addresses at my code level by inserting .EQU LCDDDR = $ 04 and .EQU LCDPORT = $ 05?
No, it has to be changed in lib.
From Help: "Note t ... |
Topic: problem with 40x4 LCD |
laborratte
Replies: 16
Views: 1106
|
Forum: BASCOM-AVR Posted: Wed Oct 27, 2021 5:55 pm Subject: problem with 40x4 LCD |
a) The library lcd4e2.lbx ist pretty old and was written before the mega328p came up. Inside the lib the port for lcd is hardcoded. You have to edit the lcd4e2.lib file to the correct I/O register for ... |
Topic: ATMEGA4809 TCA0 Split mode PWM 100% duty? |
laborratte
Replies: 4
Views: 622
|
Forum: BASCOM-AVR Posted: Fri Oct 15, 2021 10:34 am Subject: ATMEGA4809 TCA0 Split mode PWM 100% duty? |
Yes, sorry, you are right. I misssed the "Down Count Only" behaviour of split mode. And it makes sense: if the counter reaches zero output is set to low, if CMP > PER it will never set back to high ... |
Topic: ATMEGA4809 TCA0 Split mode PWM 100% duty? |
laborratte
Replies: 4
Views: 622
|
Forum: BASCOM-AVR Posted: Wed Oct 13, 2021 1:20 pm Subject: ATMEGA4809 TCA0 Split mode PWM 100% duty? |
As I understand the datasheet you should get a 100% on time if you set the periodic (LPER and HPER) registers to &HFE and compare registers (LCMP0 ... HCMP2) to &HFF.
sorry, no possiblities ... |
Topic: Swap with software uart |
laborratte
Replies: 2
Views: 472
|
Forum: BASCOM-AVR Posted: Mon Jul 26, 2021 12:33 pm Subject: Swap with software uart |
<deleted> |
Topic: Help with XTEA Encoding of an Array |
laborratte
Replies: 4
Views: 460
|
Forum: BASCOM-AVR Posted: Fri May 21, 2021 3:17 pm Subject: Help with XTEA Encoding of an Array |
Well, you could change the XTEA-Lib (or write your own) in a way that the routine will write in a second array and you have found the starting point.
But I wouldn't do it at all.
Simply copy your ... |
Topic: Problem with Single variable |
laborratte
Replies: 17
Views: 1280
|
Forum: BASCOM-AVR Posted: Thu Apr 22, 2021 9:34 am Subject: Problem with Single variable |
Doing math with floating point values is always "non-precise". The obvious example in the decimal world is: 3 * (1/3) = 0.9999999999. As computers work binary rounding errors may occur on places where ... |
Topic: Question of 'AN #118 - I2C LCD and Keboard library' |
laborratte
Replies: 7
Views: 846
|
Forum: BASCOM-AVR Posted: Tue Mar 23, 2021 11:53 am Subject: Question of 'AN #118 - I2C LCD and Keboard library' |
comparing your measurements and the code _temp1 is clearly an alias for R24 or R25. As R24 and R25 are used and changed in *BASIC: waitms 4, _temp1 has the value of &h00 after waitms, that is corr ... |
Topic: Interrupt overflows being missed? |
laborratte
Replies: 29
Views: 1840
|
Forum: BASCOM-AVR Posted: Mon Mar 01, 2021 2:03 pm Subject: Re: laborratte |
I did change the use of Timer0 and Timer 1
sorry, missed that.
I would love to find a good resource about the timers and pwm. If you have any I can read, please let me know.
I'm afraid I can't h ... |
Topic: Interrupt overflows being missed? |
laborratte
Replies: 29
Views: 1840
|
Forum: BASCOM-AVR Posted: Mon Mar 01, 2021 11:28 am Subject: Interrupt overflows being missed? |
Hi,
A) You are creating a "artifical" 16Bit timer0 with your overflow counter isr and use timer1 as a pwm with a resoultion of 80 (dec) - less than 7 bit. Why not vice versa? When you use timer0 as p ... |
Topic: AVR-DOS and FLASH MEMORY IC (AT25SF081) |
laborratte
Replies: 2
Views: 2464
|
Forum: AVR-DOS Posted: Fri Feb 26, 2021 11:40 am Subject: AVR-DOS and FLASH MEMORY IC (AT25SF081) |
There are some chips which might be interesting to you: XTSD01GLGEAG to XTSD08GLGEAG by a company named XTX. These are tiny flash chips with a (non-official) SD interface. They should work with the st ... |
Topic: SRAM space left |
laborratte
Replies: 3
Views: 544
|
Forum: BASCOM-AVR Posted: Thu Feb 18, 2021 10:21 pm Subject: SRAM space left |
First var is at 200 hex. |
Topic: Data-Lines in Lib and Inline-Asseembler |
laborratte
Replies: 11
Views: 1054
|
Forum: BASCOM-AVR Posted: Fri Feb 12, 2021 1:44 pm Subject: Re: Data-Lines in Lib and Inline-Asseembler |
Is there a way to store Word, Long and String like this?
.dw wordvalue
.dl longvalue
.db "String",0
no.
Or must i use basic-command like Data to do this?
In Lib
*Basic: Data "Hallo ... |
Topic: Do we want an Xmega based Arduino board? |
laborratte
Replies: 17
Views: 7573
|
Forum: AVR Posted: Thu Feb 11, 2021 11:07 pm Subject: Do we want an Xmega based Arduino board? |
As MWS wrote I think the lack of XMegas is more likely based on missing Arduino IDE implementations - the few projects were not touched for years. I 've found a [url=https://www.akafugu.jp/posts/produ ... |
|