Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 79 matches
www.mcselec.com Forum Index
Author Message
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Thu Apr 27, 2023 7:13 pm   Subject: buffered hardware serial problems
the problem is that there is an include file that defines :
const NONE=0

and as parameter values get converted, you get an error.


removed
Const None=0

no more compile error in this line: ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Thu Apr 27, 2023 4:30 pm   Subject: buffered hardware serial problems
https://www.mcselec.com/userpix/18040_Screenshot_20230427_092225_1.jpg
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Thu Apr 27, 2023 3:40 pm   Subject: buffered hardware serial problems
I've put the working code back in to the full program (12K lines) and it's back to compiler error in Config Comx statements.
Check what happens if you delete the <yourproject>.cfg file within t ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Thu Apr 27, 2023 12:22 am   Subject: buffered hardware serial problems
I've put the working code back in to the full program (12K lines) and it's back to compiler error in Config Comx statements.
I've tried copy/paste and copy/paste/export several different ways with d ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Wed Apr 26, 2023 8:28 pm   Subject: buffered hardware serial problems
Config Comx always compiles with error for me.
I've copied your code from your post, pasted into a new window, saved and compiled, zero error.
Try the same and check if it makes a difference. Maybe ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Wed Apr 26, 2023 8:19 pm   Subject: buffered hardware serial problems
Config Comx always compiles with error for me.
I've copied your code from your post, pasted into a new window, saved and compiled, zero error.
Try the same and check if it makes a difference. Maybe ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Wed Apr 26, 2023 8:04 pm   Subject: buffered hardware serial problems
Could you tell more about:
1. Compiler build
2. IDE version?
(help-> about)

Regards,
Przemek

Edit:
with compiler 2.0.8.5.009 and IDE 2.0.8.5.007 I don't have errors like MWS.

Don't fo ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Wed Apr 26, 2023 7:26 pm   Subject: buffered hardware serial problems
MWS:

Thanks for your reply!

Config Comx always compiles with error for me.

$framesize = 4400 is intentional. The real code is very large and does a lot of stuff. When I started having stack ...
  Topic: buffered hardware serial problems
jeremywilson

Replies: 15
Views: 5506

PostForum: BASCOM-AVR   Posted: Wed Apr 26, 2023 6:03 pm   Subject: buffered hardware serial problems
I'm having trouble using the compiler's buffered hardware serial commands to drive four ports on ATMEGA2560.

Problem 1: Config Comx returns "Error 86 ... Invalid parameter for CONFIG parameter or ...
  Topic: need help with Config Submode
jeremywilson

Replies: 12
Views: 2549

PostForum: BASCOM-AVR   Posted: Thu Apr 20, 2023 9:19 pm   Subject: need help with Config Submode
thanks!
  Topic: need help with Config Submode
jeremywilson

Replies: 12
Views: 2549

PostForum: BASCOM-AVR   Posted: Thu Apr 20, 2023 6:03 pm   Subject: CONFIG SUBMODE=NEW and ON INTERRUPT
With Config submode=new, does the ON Interrupt statement need to come after the ISR?
Does the On Interrupt need a goto jump over?


example:

Sub Rx1_rcv_isr()
' Rx1 byte reception interrupt ...
  Topic: ATTINY1604 serial port
jeremywilson

Replies: 8
Views: 856

PostForum: BASCOM-AVR   Posted: Sun Jul 25, 2021 4:23 am   Subject: ATTINY1604 serial port
you forgot to specify the mode : Mode = Asynchroneous
I assumed I could leave out options that don't need to change - asynch is the default setting for the Control C register.
Never assume anything ...
  Topic: ATTINY1604 serial port
jeremywilson

Replies: 8
Views: 856

PostForum: BASCOM-AVR   Posted: Sat Jul 24, 2021 6:14 pm   Subject: ATTINY1604 serial port
as simple as possible means also without the interrupt and buffered mode.
I remarked out Config Serout0 and Enable Interrupts, same result

simulator results:
USART0_BAUDH = &h00
USART0_BAUDL ...
  Topic: ATTINY1604 serial port
jeremywilson

Replies: 8
Views: 856

PostForum: BASCOM-AVR   Posted: Sat Jul 24, 2021 12:27 am   Subject: ATTINY1604 serial port
1: you best use a simple sample. i always start with the real simple serial.bas

$regfile = "atxtiny1604.dat" ' ATTINY1604
Config Sysclock = 16_20mhz , Pres ...
  Topic: ATTINY1604 serial port
jeremywilson

Replies: 8
Views: 856

PostForum: BASCOM-AVR   Posted: Fri Jul 23, 2021 3:42 pm   Subject: ATTINY1604 serial port
This is my first try at ATTINY1604 serial communication.
I'm testing out the hardware and software serial communications by sending 4 bytes at 38400 baud.
(one gets remarked out while testing the ot ...
 
Page 1 of 6 Goto page 1, 2, 3, 4, 5, 6  Next
All times are GMT + 1 Hour
Jump to: