Hi!
thanks for the reply. personally, I find the chip easier from the HW perspective. SPI is the interface I prefer, the chip is smaller and easier to implement on the board etc. those are the main (probably the only) reasons I'm asking.
regards,
josip
↧
EASY TCP/IP : Wiznet W5500 : REPLY
↧
BASCOM-AVR : Problem with pulsein.lib : NEWTOPIC
this code produced an error by syntax controll. I don't know why. What can I do? (Sorry for my bad english. I hope you understand me)
<<< error 61: line 57 label not found [_micro_delay] in file ..... pulsein.lib. >>>
$regfile = "m8def.dat"
$crystal = 8000000
$hwstack = 32
$swstack = 40
$framesize = 50
$lib "pulsein.lib"
Config Portb.1 = Input
Config Portb.0 = Output
Config Portb.2 = Output
Const Cpulsein_timeout = 0
dim bPulseIn_Delay as byte
bPulseIn_Delay = 10
Dim Zeitmessung As Word
Dim Entfernung As Word
Do
Pulseout Portb , 0 , 40
Pulsein Zeitmessung , Pinb , 1 , 1
Entfernung = Zeitmessung
If Entfernung > 0 Then
If Entfernung < 5 Then
Portb.2 = 1
Else
Portb.2 = 0
End If
End If
Waitms 100
Loop
[b:4ccc8844d2][color=red:4ccc8844d2](BASCOM-AVR version : 2.0.7.8 )[/b:4ccc8844d2][/color:4ccc8844d2]
↧
↧
BASCOM-AVR : Problem with pulsein.lib : REPLY
there is no label _micro_delay in the pulsein.lib
I advise to check if you use the right version.
the one from mcs is 4791 bytes.
↧
BASCOM-AVR : Problem with pulsein.lib : REPLY
Hi,
my Version is from 17.10.2013 23:16 (4,57 KB) I had updated it yesterday.
↧
BASCOM-AVR : Problem with pulsein.lib : REPLY
I had another look.
you need to include this in your code : waitus Bpulsein_delay
it does not matter where.
you use a special variant of the waitus routine because of the variable Bpulsein_delay
↧
↧
BASCOM-AVR : Problem with pulsein.lib : REPLY
Thank you,
it's allright.
Greetings
Peter
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
Both answers is "No, but with some correction it may be possible.".
I've checked SD-Card on SSD1289 in 262k color and will publish it soon. Also I will try ILI9325.
↧
Share your working BASCOM-AVR code here : ATXMEGA: Output a triangle wave from XRAM over DMA to DAC B : REPLY
Is there a way to change DACB to DACA?
DACB on the XPLain goes to the audio amp and is kind difficult to use as triangle wave output (very tinny tracks).
But DACA is routed to header J2.
I have tried but still cannot get the DACA to make the triangle wave... I'm still in rock era with DMA's and Xmegas.
↧
Share your working BASCOM-AVR code here : SAMSUNG-S5230 LCD Library : REPLY
After the suggested changes to xmeag overlook these errors:
[code:1:380ee6cc6f]
Error : 46 Line : 323 Assignment error [SS_SPI_ROM: 0 0: 112] , in File : Samsung-S5230 library.inc
Error : 46 Line : 323 Assignment error [SS_SPI_ROM: 0 1: 112] , in File : Samsung-S5230 library.inc
Error : 61 Line : 94 Label not found [_XMEGAFIX_CLEAR ] , in File : Samsung-S5230 library.inc
Error : 61 Line : 94 Label not found [_XMEGAFIX_ROL_R1014 ] , in File : Samsung-S5230 library.inc
[/code:1:380ee6cc6f]
I continue to ask for information on how to change the pin assignments for atmega if it is of course possible. I tested Library for LS020 and I must admit that it works amazingly, I expect the same from the display s5230.
↧
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
thanks
so we are waiting :D
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
[quote:1f2a49b2d4="albertsm"]Thank you for sharing your great work. There is a big collection now :D
Maybe someone can create some nice index page of all LCD drivers.
And a remark in general :
I hope that users give feedback. And not just when there is a problem, but it would also be nice to learn about projects where the code is used.[/quote:1f2a49b2d4]
Too true!
Thanks MrShilov. I'm using some of your SSD1289 work, Thanks mate - If you're ever in Australia the Vodka's on me.
ALSO - IMO there should be another forum section just for Drivers / Libs etc. I know there's search, but sometimes you don't know what you're searching for!
Cheers
↧
BASCOM-AVR : mySmartUSB MK3 & Bascom AVR : REPLY
Thanks, but it is required a programmer called STK500 extended, but i cant find it in the drop down box.
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
This is awesome. A video will be on youtube?
↧
↧
BASCOM-AVR : The first few Print-statements are not displayed in terminal : NEWTOPIC
I am a total beginner to Bascom and Microcontroller-Programming. I have this very simple program:
[code:1:afb4de4c32]
$regfile = "m8adef.dat"
$crystal = 3686400
$hwstack = 40
$swstack = 32
$framesize = 60
$baud = 19200
Dim Number As Byte
Number = 0
Print "Hello World"
Do
Print "Number = " ; Number
Incr Number
Wait 1
Loop
End
[/code:1:afb4de4c32]
When I start the terminal emulator the output is (for example):
[code:1:afb4de4c32]
Number = 6
Number = 7
Number = 8
Number = 9
Number = 10
Number = 11
Number = 12
[/code:1:afb4de4c32]
Is there any possibility to also get the first few Print-statements displayed?
Regards,
Steffen
[b:afb4de4c32][color=red:afb4de4c32](BASCOM-AVR version : 2.0.7.5 , Latest : 2.0.7.8 )[/b:afb4de4c32][/color:afb4de4c32]
↧
BASCOM-AVR : The first few Print-statements are not displayed in terminal : REPLY
I thin you to slow with starting the terminal emulator.
Try this;
[code:1:79b1cb5a0d]
$regfile = "m8adef.dat"
$crystal = 3686400
$hwstack = 40
$swstack = 32
$framesize = 60
$baud = 19200
Wait 5
Dim Number As Byte
Number = 0
Print "Hello World"
Do
Print "Number = " ; Number
Incr Number
Wait 1
Loop
End
[/code:1:79b1cb5a0d]
↧
BASCOM-AVR : mySmartUSB MK3 & Bascom AVR : REPLY
when it requires stk500, you can best chose the stk500 native driver.
or use stk500 but that one requires the stk500.exe from atmel avr studio.
So simplest would be the stk500 native driver.
↧
EASY TCP/IP : Wiznet W5500 : REPLY
i was fighting with this module. have connected it to the stk600.
but for some reason one gnd and vcc wire was not enough. just after i had checked wires for the third time, i decided to add another vcc and gnd, and then i could read the registers.
but writing registers does not work proper yet. So i might better add external power.
Too bad they included this eeprom and pic on the module that loads default values. i would have liked some jumper to turn that off.
ok, back to the wiring...
↧
↧
BASCOM-ARDUINO : Multi-functional shield on Arduino Uno : REPLY
Thanks for sharing Ben. :D
Indeed a good idea to create an inc file.
↧
BASCOM-AVR Old versions : pins and ports again : REPLY
Thanks you Mark - I did not know that the 1284p had that qirk about toggling ports by writing to the pin until you pointed it out and I have just read the line in the data sheet.
Some time ago you wrote a bit of assembler for me which flashed an LED on portb.1 and I now want to assign that LED to "heartbeat"
How do i do that. i have played with * in front of lines, tried .equ and .def in vain.
sbi heartbeat,1 is what i want to do so i can change which LED flashes, by changing the alias only
[code:1:ba4599ed80]
$regfile = "m1284pdef.dat"
$crystal = 9830400
$framesize = 100
$hwstack = 100
$swstack = 100
' '-------------------------------------------------------------------------------
'Open a software UART TRANSMIT channel for debug dB9
'-------------------------------------------------------------------------------
'Open a software UART TRANSMIT channel for debug dB9
Open "comc.3:9600,8,n,1" For Output As #1 '
Open "comc.2:9600,8,n,1" For Input As #5
'-----------------------------------------------------------
'8 bit counter, 9.8mhx xtal, 1024 prescaler = overflows 37.5 times per sec
declare sub timer0overflow()
enable interrupts
Config Timer0 = timer , Prescale = 1024
Enable Timer0
On Timer0 Timer0overflow nosave 'happens 37.5 times/sec '
'---------------------------------------------------------------------------------
dim btimer0 as byte
config portb.1 = output
heartbeat Alias PortB.1 'heartbeat led
Config heartbeat = Output
print #1 , "hello cruel world"
Do
Loop
'*****************************************
sub Timer0overflow()
'*******************************************************************************
'called 37 x per second
'flashes LED once per sec
$asm
push r24 ;save r24
in r24, sreg ;r24<-sreg
push r24 ;save status register to stack
lds r24, {btimer0} ;load direct
inc r24
cpi r24,37 ;compare
brlo timer0overflo ;br if r24 < 37
clr r24 ;clear r24
sbi pinb,1 ;with atmega1284p, toggle led on portb.1
timer0overflo:
sts {btimer0},r24 ;store btimer0 <- r24
pop r24
out sreg , r24 'get Sregister back
pop r24
$end asm
end sub
'**************************************************************************
End
[/code:1:ba4599ed80]
↧
EASY TCP/IP : Wiznet W5500 : REPLY
ahem, just one wire connector did not made good contact. now i can write and ping. Next time i begin to check all connector pins.
↧