Author |
Message |
Topic: problem with delay using motion sensor |
EDC
Replies: 14
Views: 1323
|
Forum: BASCOM-AVR Unsupported versions Posted: Sun Jun 26, 2016 8:34 pm Subject: problem with delay using motion sensor |
Post your code then we try to tweak it
Even if you don`t know how to configure Timer then you can in loop insert small delay eg. 100ms and when one sensor enable relay then set some variable for ... |
Topic: Timer-Interrupts |
EDC
Replies: 14
Views: 1372
|
Forum: BASCOM-AVR Unsupported versions Posted: Sat Jun 25, 2016 9:25 am Subject: Timer-Interrupts |
Try this slightly modified code. It works somehow
$regfile = "m16def.dat"
$Crystal=4000000
$hwstack=40
$swstack=16
$framesize=32
Config Pind.0 = Output : Led_0 Alias Portd.0 ... |
Topic: hardware SPI |
EDC
Replies: 2
Views: 296
|
Forum: BASCOM-AVR Posted: Mon Jun 20, 2016 8:28 pm Subject: hardware SPI |
You don`t configure SS pin as Output
Also NOSS=1 is used... so
This is normal AVR behavior if SPI is in Master mode but something pull SS pin down then for preventing collisions SPI is switched aut ... |
Topic: Building a Webserver with a Wiznet W5100 |
EDC
Replies: 51
Views: 22426
|
Forum: BASCOM Project Blog Posted: Fri Jun 10, 2016 11:27 pm Subject: Building a Webserver with a Wiznet W5100 |
Hi Paul. I watch your work and I`m impressed.
I build custom Arduino shield for my friend.
On this shield we have 3x MAX31855 for thermocouples, 1Wire sensor and Bus out for next devices, MAX232 fo ... |
Topic: Attiny 13 problem with PB |
EDC
Replies: 8
Views: 316
|
Forum: BASCOM-AVR Posted: Wed Jun 08, 2016 11:30 pm Subject: Attiny 13 problem with PB |
I use sometimes RST pin in 8PIN Tiny`s as OUTPUT/INPUT because I have FuseBit Doctor.
This free hardware allow you to reprogram Fuses in any AVR quicly and even without PC
This is HVPP/HVSP progr ... |
Topic: EEprom access using pointers and tables |
EDC
Replies: 9
Views: 684
|
Forum: BASCOM-AVR Posted: Mon Jun 06, 2016 5:05 pm Subject: EEprom access using pointers and tables |
With Overlay we can build something like "type" and fill variables of different types (Byte,Word,Dword,Strings) from eeprom at one time.
$regfile = "m328def.dat"
$crystal = 8000000
$hwsta ... |
Topic: Interface between MPP solar products & PC |
EDC
Replies: 23
Views: 2847
|
Forum: Share your working BASCOM-AVR code here Posted: Sun May 29, 2016 9:54 am Subject: Interface between MPP solar products & PC |
So I think you should try like that. But after set this parameters restart Bascom.
I dont know why but sometimes when I switch from one programmer to another (MKII for Xmagas and switch to Arduino fo ... |
Topic: Interface between MPP solar products & PC |
EDC
Replies: 23
Views: 2847
|
Forum: Share your working BASCOM-AVR code here Posted: Sun May 29, 2016 9:49 am Subject: Interface between MPP solar products & PC |
I also have Arduino IDE installed so I look inside bootloaders section.
In bootloaders for Atmega you can find bootloader for 1280 and some usefull informations |
Topic: Arduino Uno not taking code |
EDC
Replies: 23
Views: 4350
|
Forum: BASCOM-ARDUINO Posted: Sat May 28, 2016 1:05 pm Subject: Arduino Uno not taking code |
Tested with Mega2560 |
Topic: Program memory erase after Bootloader error |
EDC
Replies: 8
Views: 512
|
Forum: BASCOM-AVR Posted: Sun May 15, 2016 8:40 am Subject: Program memory erase after Bootloader error |
Morrning cup of coffe brings me one idea
If bootloader get instruction to flash micro then it can write &HFF to specified Eeprom address.
Because programing protocol check block integrity whi ... |
Topic: Program memory erase after Bootloader error |
EDC
Replies: 8
Views: 512
|
Forum: BASCOM-AVR Posted: Sat May 14, 2016 12:35 pm Subject: Program memory erase after Bootloader error |
If BOOTRST is set then micro always start at addres combined with BOOTSZ0 BOOTSZ1 and dependend used micro.
I think you should add function to existing bootloader that check integrity of main program ... |
Topic: config statements in a conditional instruction |
EDC
Replies: 4
Views: 212
|
Forum: BASCOM-AVR Posted: Fri May 13, 2016 4:11 pm Subject: config statements in a conditional instruction |
..but you can use those pins without any problem
I wrote this test code and test it. Working exellent
Compiler insert whole needed code for LCD of course but you can change DDRx register at a ... |
Topic: interrupt on Xmega |
EDC
Replies: 5
Views: 593
|
Forum: BASCOM-AVR Posted: Mon May 09, 2016 5:56 pm Subject: interrupt on Xmega |
Do you read AN#192 "Getting Started with Xmega" ?
Can be found on MCS site in Application notes section.
If not - here you have [url=http://www.mcselec.com/index.php?option=com_content&task=vie ... |
Topic: Arduino Uno not taking code |
EDC
Replies: 23
Views: 4350
|
Forum: BASCOM-ARDUINO Posted: Mon May 09, 2016 10:22 am Subject: Arduino Uno not taking code |
My working settings for Arduino Nano with Atmega328P (see picture) |
Topic: Input to output (interrupt driven) |
EDC
Replies: 7
Views: 467
|
Forum: BASCOM-AVR Posted: Fri May 06, 2016 2:10 pm Subject: Input to output (interrupt driven) |
Try like that if something changes
We dont know your hardware but sometimes 22nF cap is the solution
$regfile = "m8adef.dat"
$crystal = 8000000
$hwstack = 64
$swstack = 48
$fra ... |
|