After reset, all ports are set as inputs with pull-up disabled. Therefor you do not need to worry about it ..... unless you alter the port configuration. AFAIK the Getadc(xx) does not alter the portsetting. A simple test can confirm this.
↧
BASCOM-AVR : Wrong ADC reading : REPLY
↧
BASCOM-AVR : Wrong ADC reading : REPLY
Thanks Plons.
↧
↧
BASCOM-AVR : mySmartUSB MK3 & Bascom AVR : NEWTOPIC
Hi, I cant get the myavr MK3 USB programmer board to work with my Bascom AVR 2.0.7.8
Is there anybody who had used the same board and could help me getting it up running thanks :evil: :evil: :evil: :evil:
[b:cee5306b1b][color=red:cee5306b1b](BASCOM-AVR version : 2.0.7.8 )[/b:cee5306b1b][/color:cee5306b1b]
↧
AVR : ZL1USB USB interface hardware : NEWTOPIC
Morning,
After a few years on other platforms I re-started my bascom-AVR projects.
Now my ZL1USB is somewere lost in time....
Does anyone have this module on stock / leftover / making efford to leave it in my time?
Schematics are also fine, i can cook a board :)
Thanks in advance.
Best,
Willem
↧
AVR : ZL1USB USB interface hardware : REPLY
attached the pdf.
MCS sells the ZL4USB. it is a compatible board.
↧
↧
BASCOM-AVR : Xmega adc : NEWTOPIC
Hi
I want to set up 16 single ended adc inputs, but cant get get my head around how to do it.
am able so set up 4 on port-A and 4 on port-B as written in the help file, but not all 16.
The Controller am using is ATxmega128A3U
can someone please help me to configure this :-)
Øyvind
[b:263d374df9][color=red:263d374df9](BASCOM-AVR version : 2.0.7.8 )[/b:263d374df9][/color:263d374df9]
↧
AVR : ZL1USB USB interface hardware : REPLY
Thanks,
i'll drop by tomorrow at MCS headquarters for the new one.
(work accross)
best,
Willem
↧
AVR : ZL1USB USB interface hardware : REPLY
you can best send an email to sales@ to make an appointment.
↧
Share your working BASCOM-AVR code here : SAMSUNG-S5230 LCD Library : REPLY
How to change this program at atmeg8 where You configure the pins D0 - D7 ( simple display of text). Compiling on xmega128a1 gives errors . Please some help .
↧
↧
Share your working BASCOM-AVR code here : SAMSUNG-S5230 LCD Library : REPLY
For Xmega you must change this:
[code:1:a8d37cfaba]Dim Color_h_s5230 As Iram Byte At 22
Dim Color_l_s5230 As Iram Byte At 21[/code:1:a8d37cfaba]
to this:
[code:1:a8d37cfaba]Dim Color_h_s5230 As Byte
Dim Color_l_s5230 As Byte[/code:1:a8d37cfaba]
Atmega8 is too small for this display, even to displaying only text. Try M16, M32 ect.
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : NEWTOPIC
3.2 inch color display with controller HX8347A:
[URL=http://radikal.ru/fp/4afaea2f8e644df192089094a69e8c1f][img:ed07801905]http://s017.radikal.ru/i411/1502/31/1dd01e8fcbe0t.jpg[/img:ed07801905][/URL]
Library support dots, lines, circles, boxes, BGC-pictures, 16-bit pictures and BMP-pictures from SD-Card.
↧
BASCOM-AVR : sample code for xmega adc : REPLY
can you please send me a code for single ended input of adc?
Regards
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
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.
↧
↧
EASY TCP/IP : Wiznet W5500 : REPLY
sorry, i had it scheduled but i ran out of time. After that it was out of sight. But after reading this, i quickly collected the board and documents and i used yesterday to read the datasheet again and make a plan.
This is a great chip and has some simplifications. because you can use VDM you can get higher speed too. But while i originally thought it were some relatively simple modifications, it is a bit harder.
in all libs the socket is passed in the address. But that is not possible now because a kind of 24 bit is used instead of 16 and i had no free register.
I do not know if users want the 5500 just for higher speed or for other reasons.
A quick solution would make no advantage of VDM and would store the socket in SRAM. Maybe that is best to get started. A more optimized rewritten version could be added later.
I keep you updated.
↧
Share your working BASCOM-AVR code here : SAMSUNG-S5230 LCD Library : REPLY
Thank you for your prompt reply. And what about the pin configuration for XMEGA or atmega? Do I have to connect as shown in the diagram? I mean D0-D7 pins of the LCD.
↧
Share your working BASCOM-AVR code here : HX8347A Display fast library : REPLY
Hi Mrshilov
thanks for sharing your great works.
could you please answer these question?
1- can i use this for " HX8352B"?
2-can i use these "sdcard" libraries for other types of displays(like ili9325,...)
thanks.
↧
BASCOM-ARDUINO : Multi-functional shield on Arduino Uno : NEWTOPIC
This is the hardware:
[img:fb09ff6e33]http://members.home.nl/hobbycorner/images/evb.jpg[/img:fb09ff6e33]
And here the software to drive the board:
First a atmega328p_pins.inc to translate most of the Arduino pins to Bascom-pins
[code:1:fb09ff6e33]'Arduino_uno_pins.inc
D0 Alias Portd.0
D1 Alias Portd.1
D2 Alias Portd.2
D3 Alias Portd.3
D4 Alias Portd.4
D5 Alias Portd.5
D6 Alias Portd.6
D7 Alias Portd.7
D8 Alias Portb.0
D9 Alias Portb.1
D10 Alias Portb.2
D11 Alias Portb.3
D12 Alias Portb.4
D13 Alias Portb.5
D14 Alias Portc.0
D15 Alias Pinc.1
D16 Alias Pinc.2
D17 Alias Pinc.3
D18 Alias Portc.4
D19 Alias Portc.5
[/code:1:fb09ff6e33]
And here the main program with several tests of the hardware
[code:1:fb09ff6e33]'Arduino Uno - Multi-functional board
$regfile "m328pdef.dat"
$crystal = 16000000
$hwstack = 64
$swstack = 64
$framesize = 64
Dim X As Word
Const _shift_delay = 20 'shift out delay in microseconds
'beeper = d3 = portd.3 - 0=active
'led1 = d13 = portb.5
'led2 = d12 = portb.4
'led3 = d11 = portb.3
'led4 = d10 = portb.2
'S1 = D15 = pinc.1
'S2 = D16 = pinc.2
'S3 = D17 = pinc.3
$include "arduino_uno_pins.inc"
Config D3 = Output 'beeper
Config D13 = Output 'led1
Config D12 = Output 'led2
Config D11 = Output 'led3
Config D10 = Output 'led4
Config D15 = Input 'switch1
Config D16 = Input 'switch2
Config D17 = Input 'switch3
Data_out Alias Portb.0 ' SER - first 595 pin 14
Latch_out Alias Portd.4 ' RCLK- all chips pin 12
Clock_out Alias Portd.7 ' SRCLK- all chips pin 11
'Chip 1 QH' -> 2nd SER
'OE connected to ground
Config Clock_out = Output 'set output to 595.
Config Data_out = Output 'set output to 595.
Config Latch_out = Output 'set output to 595.
Set Clock_out 'switch off 595
Reset Data_out 'switch off 595
Reset Latch_out 'switch off 595
Dim Pattern As Word
D3 = 1 ' beeper off
Declare Sub Send595(byval Pattern As Word)
'clear display
' SSSSSSSS DDDD
' .GFEDCBA 1234
Pattern = &B11111111_0000_0000 'segments active low, display active high
Call Send595(pattern)
' beeper on/off
D3 = 0 'beeper
Wait 1
D3 = 1
Wait 1
' leds running
For X = 1 To 20
D13 = 0
Waitms 100
D13 = 1
D12 = 0
Waitms 100
D12 = 1
D11 = 0
Waitms 100
D11 = 1
D10 = 0
Waitms 100
D10 = 1
Waitms 100
Next X
'beep for switch press
D3 = 0 'beeper
Wait 1
D3 = 1
Wait 1
' switches
For X = 1 To 65000
If D15 = 0 Then D13 = 0 'S1 - Led1
If D16 = 0 Then D12 = 0 'S2 - Led2
If D17 = 0 Then D11 = 0 'S3 - Led3
Waitms 1
Next X
'leds off
D13 = 1
D12 = 1
D11 = 1
D10 = 1
'display, show 1234 - found in www.mcselec.com - work of Ian Dobson
Do
'segment and display
' SSSSSSSS DDDD
' .GFEDCBA 1234
Pattern = &B11111001_0000_0001 '1
Call Send595(pattern)
Waitms 5
Pattern = &B10100100_0000_0010 '2
Call Send595(pattern)
Waitms 5
Pattern = &B10110000_0000_0100 '3
Call Send595(pattern)
Waitms 5
Pattern = &B10011001_0000_1000 '4
Call Send595(pattern)
Waitms 5
Loop
End
'-----------------------------------------------------------------------------
Sub Send595(byval Pattern As Word)
Shiftout Data_out , Clock_out , Pattern , 0 , 16 , _shift_delay 'send pattern
Set Latch_out 'latch shift reg to outputs
NOP 'wait abit
Reset Latch_out 'latch off, data written
End Sub
[/code:1:fb09ff6e33]
Parts are found in the www.mcselec.com forum.
Have fun
Ben Zijlstra
↧
↧
BASCOM-AVR : mySmartUSB MK3 & Bascom AVR : REPLY
Hello and welcome to the forum,
I saw the myAVR MKII proposed as a programer but not the MKIII,
Perhaps should you ask myAVR first.
JP
↧
BASCOM-ARDUINO : Multi-functional shield on Arduino Uno : REPLY
hello !
it's a good idea to make an alias for the pins !
[quote:bd40de381c]I love and Hate Arduino.
Love, because the shields are an easy way to try , to test, most are cheap and clever.
hate, because Arduino don't speak about port as AVR and Bascom speak. [/quote:bd40de381c]
Where did you find the shield ?
Thanks you
JP
↧
BASCOM-ARDUINO : Multi-functional shield on Arduino Uno : REPLY
On the board a CE stamp so I think it is from Chinese Electronics :D
7,11 euro. Sounds like Ben Good..
Have fun
Ben Zijlstra
↧