Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 1057 matches
www.mcselec.com Forum Index
Author Message
  Topic: Circular Buffer - is there a built in function, or something
TSEYFARTH

Replies: 14
Views: 865

PostForum: BASCOM-AVR   Posted: Wed Oct 21, 2015 9:29 pm   Subject: Circular Buffer - is there a built in function, or something
Thanks again MWS.

The global Enable Interrupts is used but not shown in the code. Correcting 2 lines of syntax for Print, fixed the problem. Works now well.

Thank you again!
Tim
  Topic: Circular Buffer - is there a built in function, or something
TSEYFARTH

Replies: 14
Views: 865

PostForum: BASCOM-AVR   Posted: Wed Oct 21, 2015 8:18 pm   Subject: Circular Buffer - is there a built in function, or something
Hi MWS,

Yes, I know we all say that about the code chunks. This is a very very big project, so posting all of the code would not make sense.

However, a gentle kick in the rear + 24 hours + a ...
  Topic: Circular Buffer - is there a built in function, or something
TSEYFARTH

Replies: 14
Views: 865

PostForum: BASCOM-AVR   Posted: Wed Oct 21, 2015 7:17 pm   Subject: Circular Buffer - is there a built in function, or something
Hi MWS.

Interesting observation about the UART. I had thought of that too, and made some changes that had a significant impact, but one that I wanted to incorporate, would not work.

This is what ...
  Topic: Circular Buffer - is there a built in function, or something
TSEYFARTH

Replies: 14
Views: 865

PostForum: BASCOM-AVR   Posted: Tue Oct 20, 2015 9:14 pm   Subject: Circular Buffer - is there a built in function, or something
Hi MWS.

Yes, that would have helped!
There are actually several circular buffers; they all work similarly to each other. The RxBuffer (shown) is used to buffer incoming data from a radio via the ...
  Topic: Circular Buffer - is there a built in function, or something
TSEYFARTH

Replies: 14
Views: 865

PostForum: BASCOM-AVR   Posted: Tue Oct 20, 2015 8:02 am   Subject: Circular Buffer - is there a built in function, or something
Hello all,

I need circular buffers for Radio RXD events. The data from my radio needs to be buffered both for forwarding on to a PC, as well as to be used to ACK back to the sending radio.

I ha ...
  Topic: How to create a Table Array in RAM and quickly perform looku
TSEYFARTH

Replies: 5
Views: 381

PostForum: BASCOM-AVR   Posted: Thu Oct 15, 2015 5:39 pm   Subject: How to create a Table Array in RAM and quickly perform looku
Hi Adrian,

Thanks for posting this. I was not looking for a complete program, just some sample code to see how others do it.

I will have a look in a little while and advise.
Thank you for shari ...
  Topic: How to create a Table Array in RAM and quickly perform looku
TSEYFARTH

Replies: 5
Views: 381

PostForum: BASCOM-AVR   Posted: Tue Oct 13, 2015 6:53 am   Subject: How to create a Table Array in RAM and quickly perform looku
Hi AdrianJ!

I could not agree more! Brute force is not the way to go, hence my post.
This looks like a good google search "binary search on an ordered list"

My array would be more than 2 dimen ...
  Topic: How to create a Table Array in RAM and quickly perform looku
TSEYFARTH

Replies: 5
Views: 381

PostForum: BASCOM-AVR   Posted: Tue Oct 13, 2015 5:09 am   Subject: How to create a Table Array in RAM and quickly perform looku
Hello all,

Can anyone point me to some sample code that would allow very fast lookup of data that has been added to an array in RAM - creating a table in ram. There could be up to 1k rows, but thi ...
  Topic: Question about stackcheck, and $Framesize Variability?
TSEYFARTH

Replies: 2
Views: 227

PostForum: BASCOM-AVR   Posted: Wed Oct 07, 2015 5:13 pm   Subject: Question about stackcheck, and $Framesize Variability?
Hi Mark,

Will do.
Tim
  Topic: Question about stackcheck, and $Framesize Variability?
TSEYFARTH

Replies: 2
Views: 227

PostForum: BASCOM-AVR   Posted: Wed Oct 07, 2015 6:08 am   Subject: Question about stackcheck, and $Framesize Variability?
Hello all,

I am using an ATMEGA1284. It does two basic things:
1. Talk to a Si4460 radio part - with interrupts
2. Talk to a PC using RS485 at 9600 bps, and am using the built in UART code

...
  Topic: How to round a single to the hundredth place?
TSEYFARTH

Replies: 5
Views: 250

PostForum: BASCOM-AVR   Posted: Mon Sep 21, 2015 12:48 am   Subject: How to round a single to the hundredth place?
Hi AdrianJ,

I wound up doing it a bit differently.

Const 5Hundreths = .05
Const 2Hundreths = .02

Dim r as Single
r = rfm24_Vdd / 2Hundreths '5Hundreths
Tx_FLD3_Buffer&# ...
  Topic: How to round a single to the hundredth place?
TSEYFARTH

Replies: 5
Views: 250

PostForum: BASCOM-AVR   Posted: Fri Sep 18, 2015 1:23 am   Subject: How to round a single to the hundredth place?
Hi Adrian,

Thanks for the response!

The built in appear to round only to the nearest integer

Round(2.3) = 2 , Round(2.8 ) = 3
Round(-2.3) = -2 , Round(-2.8 ) = -3


I did not see a way to ...
  Topic: How to round a single to the hundredth place?
TSEYFARTH

Replies: 5
Views: 250

PostForum: BASCOM-AVR   Posted: Thu Sep 17, 2015 10:48 pm   Subject: How to round a single to the hundredth place?
Hello all,

I want to round a single to the nearest 500ths place .05, 0.10, 0.15, .2 etc.

Can anyone tell me the best way to do this? The max value is 4.0

Thanks,
Tim

(BASCOM-AVR version ...
  Topic: How to change how Watchdog Isr is performed?
TSEYFARTH

Replies: 5
Views: 244

PostForum: BASCOM-AVR   Posted: Thu Sep 17, 2015 12:07 am   Subject: How to change how Watchdog Isr is performed?
MWS,

Thank you - your solution worked perfectly!

Tim
  Topic: How to change how Watchdog Isr is performed?
TSEYFARTH

Replies: 5
Views: 244

PostForum: BASCOM-AVR   Posted: Wed Sep 16, 2015 11:33 pm   Subject: How to change how Watchdog Isr is performed?
Hello and my apologies MWS!

Talk about a series of blunders.... Embarassed

Thanks for the response and not ripping too hard Embarassed
Tim
 
Page 3 of 71 Goto page Previous  1, 2, 3, 4 ... 69, 70, 71  Next
All times are GMT + 1 Hour
Jump to: