Author |
Message |
Topic: interfacing ADS1115 |
EDC
Replies: 8
Views: 2670
|
Forum: BASCOM-AVR Posted: Mon Feb 08, 2016 3:47 pm Subject: interfacing ADS1115 |
Is the 90s8515 really chip You want to run this code or maybe You have Mega8515 that need "m8515.dat"?
Why don`t You use some chip with TWI. Even on Atmega8 You can use $lib "I2c_twi.lib" and then us ... |
Topic: SSD1306 Oled I2c 0.96 inch |
EDC
Replies: 52
Views: 38950
|
Forum: BASCOM-ARDUINO Posted: Sun Feb 07, 2016 12:25 am Subject: SSD1306 Oled I2c 0.96 inch |
My little investigation take me into Xmega.lib
Address for register of I2C channel is keeped in Z so R30 and R31 cannot be altered.
But LPM for reading from flash uses R30 and R31 so in first when I ... |
Topic: NOKIA-3310/5110 LCD library |
EDC
Replies: 119
Views: 48195
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Jan 27, 2016 12:35 am Subject: NOKIA-3310/5110 LCD library |
On ATXMEGA128A3U I config Vport and library work fine
Thanks Mrshilov |
Topic: Simulating Buffered Serial Out |
EDC
Replies: 2
Views: 305
|
Forum: BASCOM-AVR Posted: Sat Jan 23, 2016 9:57 am Subject: Simulating Buffered Serial Out |
Here You have (see pic)
For timers you can enable "Simulate timers" but for other interrupts you must manually trig them
Have a nice day |
Topic: Software serial using PCINT is disabling other interrupts |
EDC
Replies: 12
Views: 882
|
Forum: BASCOM-AVR Posted: Sun Jan 17, 2016 12:18 am Subject: Software serial using PCINT is disabling other interrupts |
You can try
I've added a new feature to my little tool
I checked only used registers. I'm not sure you need in this case to keep SREG and this output is valid only for instructions used betwe ... |
Topic: Thingspeak field update example |
EDC
Replies: 4
Views: 1802
|
Forum: Share your working BASCOM-AVR code here Posted: Fri Jan 15, 2016 3:26 pm Subject: Thingspeak field update example |
Hello. This code is only example and I post it because it work
Code react if "WIFI GOT IP" string is detected.
I use Xmega because voltage levels but any micro with enough SRAM should work
A ... |
Topic: The bascom chip programmer |
EDC
Replies: 2
Views: 381
|
Forum: BASCOM-AVR Posted: Wed Jan 13, 2016 11:03 pm Subject: The bascom chip programmer |
Yes.. work like a charm
Look attached picture. I have latest LUFA firmware installed in programmer and then work in Bascom and Studio with only click for mode change |
Topic: Adding date to EEPROM when programming device |
EDC
Replies: 10
Views: 647
|
Forum: BASCOM-AVR Posted: Sat Jan 09, 2016 9:36 pm Subject: Adding date to EEPROM when programming device |
1. On Programmer Tab check "Upload Code and Data"
2. Create file that have the same name as main program but with EEP extension.
3. Build your own Windows Application that will update this file w ... |
Topic: backup battery for RTC? |
EDC
Replies: 9
Views: 864
|
Forum: BASCOM-AVR Posted: Fri Jan 08, 2016 3:14 pm Subject: backup battery for RTC? |
Maybe this is some kind of start point (see pic) |
Topic: USB HID VOLUME UP DOWN TINY85 |
EDC
Replies: 2
Views: 971
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 07, 2016 1:04 pm Subject: USB HID VOLUME UP DOWN TINY85 |
Hello. I know this is nothing special but I explain why I post this READY TO USE example.
This is my weekend project
I`m fan of good sound but don`t have enough money to spend it buying expensi ... |
Topic: [Bootloader] How BascomAVR knows start address after bootloa |
EDC
Replies: 4
Views: 647
|
Forum: BASCOM-AVR Unsupported versions Posted: Wed Jan 06, 2016 5:50 pm Subject: [Bootloader] How BascomAVR knows start address after bootloa |
Did you know what happend when you leave BOOTRST FuseBit programed and no bootloader code will be resident at this vector?
Micro hang?
I tell you - nothing special if main application is not to bi ... |
Topic: i have simple problem in my code delay[on/off] relay |
EDC
Replies: 1
Views: 225
|
Forum: BASCOM-AVR Posted: Mon Dec 21, 2015 2:58 pm Subject: i have simple problem in my code delay[on/off] relay |
Not optimal .. I only add "timeout" function to your code.
$regfile = "m16def.dat"
$crystal = 1000000
'---------------------------
Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , ... |
Topic: Is there a better way? |
EDC
Replies: 11
Views: 452
|
Forum: BASCOM-AVR Posted: Mon Dec 07, 2015 10:31 am Subject: Is there a better way? |
strings being sent are quite long (60 bytes)
If they both are same then you dont need to code them twice |
Topic: Timer2 not working in real hardware.. |
EDC
Replies: 7
Views: 782
|
Forum: BASCOM-AVR Unsupported versions Posted: Sat Nov 14, 2015 10:36 am Subject: Timer2 not working in real hardware.. |
$regfile = "m16adef.dat"
$crystal = 8000000
$baud = 19200
$hwstack = 40
$swstack = 40
$framesize = 40
Config Clock = Soft
'this create Int for Timer2 and hidden variables
' ... |
Topic: Can not program Mega32 |
EDC
Replies: 8
Views: 520
|
Forum: BASCOM-AVR Posted: Tue Nov 03, 2015 9:25 pm Subject: Can not program Mega32 |
Datasheet says that programming speed can not exceed 1/4 microcontroller clock
So if Mega is shipped with 1MHz then
1MHz is 1million Hz /s
1000 000 / 4 = 250 000
250 000 = 250kHz
I dont know ... |
|