Author |
Message |
Topic: Arduino Nano with I2c LCD and backlight |
EDC
Replies: 36
Views: 24187
|
Forum: BASCOM-ARDUINO Posted: Mon Sep 05, 2016 12:14 pm Subject: Arduino Nano with I2c LCD and backlight |
I`ve test this because sometimes it will be helpful to attach LCD for debug to projects where no more pins available.
I found thing that is obvious for now but before that lines was wrong addressing ... |
Topic: Changing from SPI NOSS = 0 to NOSS = 1 |
EDC
Replies: 12
Views: 347
|
Forum: BASCOM-AVR Posted: Sun Aug 28, 2016 9:41 am Subject: Changing from SPI NOSS = 0 to NOSS = 1 |
This code work normally as assumed... SPI don`t control LED pin
$regfile = "m2560def.dat"
$crystal = 16000000
$hwstack = 64
$swstack = 32
$framesize = 128
Config Portb.0 = Output ... |
Topic: Changing from SPI NOSS = 0 to NOSS = 1 |
EDC
Replies: 12
Views: 347
|
Forum: BASCOM-AVR Posted: Sun Aug 28, 2016 8:59 am Subject: Changing from SPI NOSS = 0 to NOSS = 1 |
My datasheet for "ATmega640/V-1280/V-1281/V-2560/V-2561/V" on page 191 says :
When configured as a Master, the SPI interface has no automatic control of the SS line. This must be handled by
user sof ... |
Topic: Xmega uart problem |
EDC
Replies: 4
Views: 538
|
Forum: BASCOM-AVR Posted: Fri Aug 26, 2016 2:09 pm Subject: Xmega uart problem |
Baud 9600 is slow and, in my case, work without enabling automatic calibration but for 115200 I must enable it.
$regfile = "xm128a3udef.dat"
$crystal = 32000000 ... |
Topic: Watchdog fuse bit |
EDC
Replies: 33
Views: 1922
|
Forum: BASCOM-AVR Posted: Mon Aug 22, 2016 8:31 am Subject: Watchdog fuse bit |
Please don`t start coding in monday without cup of coffe Hahaha
If you insert Initlcd statement then LCD will be initialized at this point
Code below work fine
$regfile = "m2560def. ... |
Topic: Hardware Uart to Software Uart communication |
EDC
Replies: 15
Views: 823
|
Forum: BASCOM-AVR Posted: Fri Aug 19, 2016 9:37 pm Subject: Hardware Uart to Software Uart communication |
In Mega644P you have PCINT on each pin. You can detect falling edge, disable PCINT temporary, and only then input data. After receving data reenable PCINT`s. |
Topic: Watchdog fuse bit |
EDC
Replies: 33
Views: 1922
|
Forum: BASCOM-AVR Posted: Fri Aug 19, 2016 3:27 pm Subject: Watchdog fuse bit |
I mean Arduino boards. If one use them for own project then bootloader also should take care to set WD time if WDTON is set.
If Arduino bootloader is cleared by flashing micro via ISP then BOOTRST sh ... |
Topic: Watchdog fuse bit |
EDC
Replies: 33
Views: 1922
|
Forum: BASCOM-AVR Posted: Fri Aug 19, 2016 3:02 pm Subject: Watchdog fuse bit |
As I said if BOOTRST is disabled this code work with m2560 .
Led flashes.
$regfile = "m2560def.dat"
$crystal = 16000000
$hwstack = 64
$swstack = 32
$framesize = 128
Config Watchdog ... |
Topic: Watchdog fuse bit |
EDC
Replies: 33
Views: 1922
|
Forum: BASCOM-AVR Posted: Fri Aug 19, 2016 10:33 am Subject: Watchdog fuse bit |
I test this with m2560 with WD FuseBit on.
EDIT: I found funny issue. BOOTRST FuseBit must be disabled while programming. I don`t have time to investigation this
This code work perfectly
... |
Topic: Watchdog fuse bit |
EDC
Replies: 33
Views: 1922
|
Forum: BASCOM-AVR Posted: Thu Aug 18, 2016 9:11 am Subject: Watchdog fuse bit |
This micro have even 8s Watchdog(look into datasheet page 66). Try another higher value.
Wait 1 + Toggle can be more than 1024 WD timer
You can also try Waitms 500->Reset WD ->Waitms 500 -&g ... |
Topic: Some idea to make one file libs with labels and data |
EDC
Replies: 2
Views: 1108
|
Forum: BASCOM-ARDUINO Posted: Tue Aug 16, 2016 5:48 pm Subject: Some idea to make one file libs with labels and data |
Yes. One can look at this sample. Even interrupt service routine can be declared/added to code at the beginning
$regfile = "m328pdef.dat"
$crystal = 11059200
$hwstack = 64
$swstack ... |
Topic: Some idea to make one file libs with labels and data |
EDC
Replies: 2
Views: 1108
|
Forum: BASCOM-ARDUINO Posted: Tue Aug 16, 2016 2:24 pm Subject: Some idea to make one file libs with labels and data |
I do not know which one of sections (Share code or this Arduino) forum will be better to show my Idea.
I like Arduino method to include one file at the beginning of main code.
In Bascom writing own ... |
Topic: limit string length |
EDC
Replies: 14
Views: 796
|
Forum: BASCOM-AVR Posted: Tue Aug 09, 2016 7:59 pm Subject: limit string length |
MagicWhiteSmoke |
Topic: Goertzel algorithm |
EDC
Replies: 11
Views: 868
|
Forum: BASCOM-AVR Posted: Sun Jul 17, 2016 10:53 am Subject: Goertzel algorithm |
Hello Alexander-Dan don`t be sad
Hello Forum.
Some time ago Iwas build a STQC decoder.
STQC protocol is used to transmit command to some devices/installations via long range CB radio (sequenc ... |
Topic: TWI or SPI range with level shifter? |
EDC
Replies: 8
Views: 287
|
Forum: BASCOM-AVR Posted: Wed Jul 13, 2016 11:15 am Subject: TWI or SPI range with level shifter? |
Maybe this link can be some solution for You.
I found it when I was working on my emulator.
I2C sensors converted to 1Wire 300m range - and guess - in Bascom
http://piotr.elektroda.eu/2014/09/ ... |
|