Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Recomendation for graphic LCD/TFT
Goto page Previous  1, 2
 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Duval JP

Bascom Member



Joined: 22 Jun 2004
Posts: 931
Location: France

france.gif
PostPosted: Mon Jan 06, 2020 4:45 pm    Post subject: Reply with quote

write in bascom and send by RX tX ligne with ArduinoM2560
debug on usb port
use of port serial 1 (port2)
see :https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14537

or the head of my program:
I used for this exemple a nexion 5"

Code:
$regfile = "m2560def.dat"
$crystal = 16000000
$hwstack = 300
$swstack = 128
$framesize = 256

Config Submode = New
Debug On                                                    'if you debug off you remove all print from USB port
'*****************************************************************
'*         CONFIG BUFFERED USART FOR DEBUG via USB               *
'*****************************************************************
Config Com1 = 115200 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Echo Off
Config Serialin0 = Buffered , Size = 30       'RX from Terminal
Open "COM1:" For Binary As #1
Const Usb = 1
'*****************************************************************

'---serial port-------------------------------------------------------------------------------------------------------------
Const Nex = 2
Config Com2 = 38400 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Open "COM2:" For Binary As #2
Config Serialin1 = Buffered , Size = 30
Config Serialout1 = Buffered , Size = 20
' RX= yellow to  18  tx1
' TX= Blue to     19  rx1

_________________
pleasure to learn, to teach, to create
Back to top
View user's profile Visit poster's website
krolikbest

Bascom Member



Joined: 02 Jan 2017
Posts: 69

poland.gif
PostPosted: Fri Jan 10, 2020 11:40 am    Post subject: Reply with quote

Very nice work according to the published video Smile Maybe i'll also be interested in such displays..
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum