Author |
Message |
Topic: EEPROM 93C HELP |
kimmi
Replies: 31
Views: 2820
|
Forum: BASCOM-AVR Posted: Thu Feb 02, 2017 3:52 pm Subject: EEPROM 93C HELP |
Hi,
here is a test setup
!!!did not test it on real hardware !!!
but maby you can use some of it and read the datasheet !
'(
'$sim
http://www.atmel.com/Images/doc5140.pdf
AT93C46 ... |
Topic: EEPROM 93C HELP |
kimmi
Replies: 31
Views: 2820
|
Forum: BASCOM-AVR Posted: Thu Feb 02, 2017 12:52 pm Subject: EEPROM 93C HELP |
Hi
Wy dont you just use shiftout / shiftin
93c46 is 1K: 128 x 8 or 64 x 16
for 8bit read/write :
so for read shiftout 9 bits Instruction (read 3 bits 110) (address 6 bits) read + addres ... |
Topic: Analog clock SSD1289 3.2" 240x320 Test |
kimmi
Replies: 9
Views: 5064
|
Forum: Share your working BASCOM-AVR code here Posted: Wed Feb 01, 2017 7:44 pm Subject: Analog clock SSD1289 3.2" 240x320 Test |
Hi JP,
I have not seen xmega256 as shield yet (i don't like Arduino)
but a quick search on the net you find some good boards (alvidi atxmega) |
Topic: Analog clock SSD1289 3.2" 240x320 Test |
kimmi
Replies: 9
Views: 5064
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Jan 31, 2017 5:21 pm Subject: Analog clock SSD1289 3.2" 240x320 Test |
Here is a test code for an Analog clock on SSD1289 3.2" 240x320 lcd
This is just a test code
It can be improved
small video [url=http://www.royalsystems.dk/clock/aclock.mp4]here |
Topic: DHT22/AM2302 |
kimmi
Replies: 15
Views: 3513
|
Forum: BASCOM-AVR Posted: Tue Jan 31, 2017 4:28 am Subject: DHT22/AM2302 |
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=12921&highlight=dht22 |
Topic: Serial Port (Atmega8) |
kimmi
Replies: 15
Views: 1565
|
Forum: BASCOM-AVR Posted: Tue Jan 31, 2017 2:32 am Subject: Serial Port (Atmega8) |
Print "WHAT YOUR CMD IS HERE" ;
try Print "5" |
Topic: Serial Port (Atmega8) |
kimmi
Replies: 15
Views: 1565
|
Forum: BASCOM-AVR Posted: Mon Jan 30, 2017 2:38 pm Subject: Serial Port (Atmega8) |
$regfile = "m8Adef.dat"
$crystal = 4000000
$hwstack = 32
$swstack = 32
$framesize = 32
$baud = 9600
Led_sent Alias Portd.2
Config Led_sent = Output
Led_1 Alias Portd.3
Config Le ... |
Topic: Need Help (AT90CAN32) |
kimmi
Replies: 19
Views: 1364
|
Forum: BASCOM-AVR Posted: Thu Jan 19, 2017 10:54 pm Subject: Need Help (AT90CAN32) |
hi
I have not try CAN yet but you can't use Cansend() as a sub name its a CMD ( it's blue)
Try use the forum search function, search for : canbus |
Topic: Variable problem with interupt |
kimmi
Replies: 6
Views: 518
|
Forum: BASCOM-AVR Posted: Wed Jan 11, 2017 11:31 pm Subject: Variable problem with interupt |
Did you config timer0 right ?
you need time to do spiout !
Config Timer0 = Timer , Prescale = 1
$crystal = 14745600
' Prescale = 1 overflow at 0.01736ms
'~~~~
' Prescale = 1024 overflow at 17 ... |
Topic: Variable problem with interupt |
kimmi
Replies: 6
Views: 518
|
Forum: BASCOM-AVR Posted: Wed Jan 11, 2017 10:49 pm Subject: Variable problem with interupt |
@AIVA
- please use the code tags when posting code.
missing Dim for K0 P5 V1 ect check your code "VAR" again |
Topic: IDE error |
kimmi
Replies: 7
Views: 799
|
Forum: BASCOM-AVR Posted: Wed Dec 28, 2016 3:32 am Subject: IDE error |
here are new features.
- edit show excluded code
- edit show dead code
you could turn it off.
One of the other ways is :
Top Menu select "Edit"
check if "Show Excluded Code" is disabled !! |
Topic: IDE error |
kimmi
Replies: 7
Views: 799
|
Forum: BASCOM-AVR Posted: Tue Dec 27, 2016 12:30 am Subject: IDE error |
Did you try what Mark say ? :
it might be the used font, or the font mode since there is a new option to 'use monofont'.
http://www.royalsystems.dk//Bascom/ba.png
Allso if you dont have a print ... |
Topic: Read SHTC1 with CRC |
kimmi
Replies: 34
Views: 1693
|
Forum: BASCOM-AVR Posted: Wed Dec 21, 2016 12:48 am Subject: Read SHTC1 with CRC |
Hi, Nice to see you got it working now
your crc only check Temperature not Humidity
here is a test for both :
$regfile = "m328pdef.dat"
$crystal = 16000000
$hwstack = 40
$swstac ... |
Topic: Read SHTC1 with CRC |
kimmi
Replies: 34
Views: 1693
|
Forum: BASCOM-AVR Posted: Sun Dec 18, 2016 2:09 am Subject: Read SHTC1 with CRC |
You must check if the module have pullup at SCL SDA pins then you don't need to add the ext pullups !!!
And Read the datasheet page 8 you need ACK / NACK cmds |
Topic: Read SHTC1 with CRC |
kimmi
Replies: 34
Views: 1693
|
Forum: BASCOM-AVR Posted: Sun Dec 18, 2016 1:45 am Subject: Read SHTC1 with CRC |
&B11100000 I2C write
&B11100001 I2C read |
|