Author |
Message |
Topic: Total time for PRINT STATEMENT |
azny
Replies: 1
Views: 2018
|
Forum: BASCOM-AVR Unsupported versions Posted: Mon Jun 25, 2018 7:51 pm Subject: Total time for PRINT STATEMENT |
Hello
I am trying to minimize the time required by PRINT statement to print 1 byte of data
Considering a baudrate of 38400, time required to send 10bits of data (1 start bit +8 bit data + 1 stop ... |
Topic: ATMEGA324PB SPI ERROR |
azny
Replies: 2
Views: 2351
|
Forum: BASCOM-AVR Unsupported versions Posted: Thu May 03, 2018 5:06 pm Subject: ATMEGA324PB SPI ERROR |
Resolved. Thank you |
Topic: ATMEGA324PB SPI ERROR |
azny
Replies: 2
Views: 2351
|
Forum: BASCOM-AVR Unsupported versions Posted: Wed May 02, 2018 5:20 pm Subject: ATMEGA324PB SPI ERROR |
Hello
I am trying to use the SPI on ATMEGA324PB. The chip supports 2 SPI
The Compiler is giving the following error. The error goes away if I comment SPIINIT, SPIIN, SPIOUT keywords
.EQU not ... |
Topic: RS485 Hardware and Software Print Issue |
azny
Replies: 9
Views: 809
|
Forum: BASCOM-AVR Posted: Tue Feb 20, 2018 5:22 pm Subject: RS485 Hardware and Software Print Issue |
thanks EDC
Changing the baudrate to 19200 worked. |
Topic: RS485 Hardware and Software Print Issue |
azny
Replies: 9
Views: 809
|
Forum: BASCOM-AVR Posted: Tue Feb 20, 2018 4:37 pm Subject: RS485 Hardware and Software Print Issue |
@EDC
The code I posted is the exact code but I tried the code you suggested. I am getting the same result.
Software UART output is corrupted.
On the hardware side, I am using a RS485 to RS232 c ... |
Topic: RS485 Hardware and Software Print Issue |
azny
Replies: 9
Views: 809
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2018 7:28 pm Subject: RS485 Hardware and Software Print Issue |
Hello
I have a MAX481 chip on my board and I am trying to send data over RS485 bus.
The following code works fine where I configure it as hardware UART
$regfile = "M164pdef.dat"
$c ... |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Wed Feb 14, 2018 4:58 am Subject: Serial Interrupt on Separate thread |
exactly right. the way you get around the async problem is to put the measured data into storage, say an array, evry measurement cycle (sure, its alittle more overhead for time) so that when the “a” ... |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Wed Feb 14, 2018 1:55 am Subject: Serial Interrupt on Separate thread |
@mws why so rough? I thought people r here to help, i would welcome any help you can give, what part of the code do u want me to put back up? |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Wed Feb 14, 2018 12:47 am Subject: Serial Interrupt on Separate thread |
Yes, 2.5 is right
Timing is done by simply setting a pin high for 10msec using the waitms command- suprisingly very stable using a crystal for the clock |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Tue Feb 13, 2018 10:34 pm Subject: Serial Interrupt on Separate thread |
guess more explanation is needed.
ideally we would like the measure/counter to run continuously. When an "a" is received the micro sends the last measurement from the counter.
if we do the follo ... |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Tue Feb 13, 2018 9:15 pm Subject: Serial Interrupt on Separate thread |
OK, i removed the code so no one is confused-- it's more of a conceptual question. we can deal with the code latter if necessary.
Here's how it's done until now.
(1) a frequency is measured usin ... |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Tue Feb 13, 2018 5:14 pm Subject: Serial Interrupt on Separate thread |
**** will replace the code with something more easily understood as it seems to have confused some people*** |
Topic: Serial Interrupt on Separate thread |
azny
Replies: 16
Views: 1687
|
Forum: BASCOM-AVR Posted: Tue Feb 13, 2018 3:31 am Subject: Serial Interrupt on Separate thread |
Hello
I have a requirement where I need to do some freq calculation in my main code and then if I receive char "a" on the UART then I need to print my calculated frequency out.
I need to send the ... |
Topic: How to measure how many times has the power been cycled? |
azny
Replies: 4
Views: 599
|
Forum: BASCOM-AVR Unsupported versions Posted: Sun Sep 27, 2015 3:54 pm Subject: How to measure how many times has the power been cycled? |
Hi AdrianJ
thanks-- i will try the code sometime over the next couple of days.
Am i correct in assuming that only the write cycle is limited to 100K, but the read cycle can be much larger?? I on ... |
Topic: How to measure how many times has the power been cycled? |
azny
Replies: 4
Views: 599
|
Forum: BASCOM-AVR Unsupported versions Posted: Sun Sep 27, 2015 1:45 am Subject: How to measure how many times has the power been cycled? |
Hi All;
I need to keep track of how many times the power is cycled for my ATMEGA164p. I have no access to a back up battery so each time the 164P powers up i need to store a number that i can incre ... |
|