Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 324 matches
www.mcselec.com Forum Index
Author Message
  Topic: Antilog In Bascom AVR
mattcro

Replies: 7
Views: 762

PostForum: BASCOM-AVR Archive   Posted: Sun Mar 20, 2011 5:54 pm   Subject: Antilog In Bascom AVR
If you want to get the rotation or position of a logarithmic potentiometer from the ADC, then all you need is the log10 function and some scaling. However, the actual curve (aka taper) of most log pot ...
  Topic: Antilog In Bascom AVR
mattcro

Replies: 7
Views: 762

PostForum: BASCOM-AVR Archive   Posted: Sun Mar 20, 2011 2:14 pm   Subject: Antilog In Bascom AVR
Read the page kimmi linked to - it shows that antilog() is the same as power() or exp(). These functions are both available in Bascom.
  Topic: CONST error 242
mattcro

Replies: 5
Views: 483

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 25, 2011 9:42 pm   Subject: CONST error 242
The Bascom compiler seems to simply insert the included file contents at the location of the $include statement, so it forms a single long linear lump of code (monolithic?), then compiles that to bina ...
  Topic: Math error with attiny48
mattcro

Replies: 5
Views: 409

PostForum: BASCOM-AVR Archive   Posted: Thu Feb 24, 2011 4:11 pm   Subject: Math error with attiny48
Ah, it's a bug in Bascom version before 2.0.0.0 - Bascom wrongly thinks the tiny48 has a hardware multiplier.

From the history.txt changelog
2.0.0.0 , yes this is the new version number
- tiny48 ...
  Topic: Math error with attiny48
mattcro

Replies: 5
Views: 409

PostForum: BASCOM-AVR Archive   Posted: Wed Feb 23, 2011 7:28 pm   Subject: Math error with attiny48
The software stack and frame are used for temporary storage of things like calculation results and strings for printing. You might not have enough stack or frame space allocated, so something is getti ...
  Topic: XMEGA startup time
mattcro

Replies: 13
Views: 1284

PostForum: BASCOM-AVR Archive   Posted: Wed Feb 23, 2011 11:33 am   Subject: XMEGA startup time
Have you tried using custom characters in 4-bit mode? There should be no problem with this, unless the Bascom library doesn't actually support it.
  Topic: Modem BELL202 with AtMega8
mattcro

Replies: 5
Views: 497

PostForum: BASCOM-AVR Archive   Posted: Wed Feb 23, 2011 11:25 am   Subject: Modem BELL202 with AtMega8
If you can understand C programming, have a look at the WhereAVR project at http://www.garydion.com/projects/whereavr This sends and receives APRS X.25 packets and uses mega8 timers to control a 4-bi ...
  Topic: need help: Timer0 in interrupt mode
mattcro

Replies: 18
Views: 2019

PostForum: BASCOM-AVR Archive   Posted: Sun Feb 20, 2011 7:52 pm   Subject: need help: Timer0 in interrupt mode
As I understand it, interrupts that occur while another interrupt handler (ISR) is being executed will be latched, and will be executed in order of priority when the first interrupt handler has return ...
  Topic: PCF8583 : first registers initialization
mattcro

Replies: 6
Views: 658

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 18, 2011 11:41 am   Subject: PCF8583 : first registers initialization
You an use the general purpose RAM in the PCF8583 to store some "signature" values. These can be any byte values other than zero.

When you set the time, you also write the signature values.

Each ...
  Topic: measure ESD
mattcro

Replies: 3
Views: 1382

PostForum: Various   Posted: Mon Feb 07, 2011 11:37 am   Subject: measure ESD
Do you need to measure temperature and humidity, or simply measure electostatic voltage?

There are plenty of digital and analogue temp/hygro sensors that can easily be interfaced with microcontroll ...
  Topic: INT0,1 triggering
mattcro

Replies: 13
Views: 1657

PostForum: BASCOM-AVR Archive   Posted: Sat Feb 05, 2011 5:41 pm   Subject: INT0,1 triggering
Check out the Pin Change Interrupts which are available on many AVR devices. You can set a whole port (or more) or pins to trigger an interrupt if any pin changes state. Usually there is 1 interrupt p ...
  Topic: INT0,1 triggering
mattcro

Replies: 13
Views: 1657

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 04, 2011 3:05 pm   Subject: INT0,1 triggering
You can configure these interrupts for rising, falling or low-level.

If you use rising or falling modes, the INT will only trigger once (at the relevant edge), and will not trigger again until the ...
  Topic: how to create a library with Bascom
mattcro

Replies: 20
Views: 2489

PostForum: BASCOM-AVR Archive   Posted: Fri Feb 04, 2011 3:02 pm   Subject: how to create a library with Bascom
Simplifying the use of INCLUDEs would make life much easier for me too. I have a large project that would be better broken into multiple modules of related subs/functions (a bit messy to do with the c ...
  Topic: Atmega precise TIMER1
mattcro

Replies: 8
Views: 1509

PostForum: BASCOM-AVR Archive   Posted: Sun Jan 30, 2011 1:24 pm   Subject: Atmega precise TIMER1
Use the CTC timer mode (see the help for CONFIG TIMER1) to keep the timing accurate - that way you can get an overflow interrupt every millisecond with no delay in reloading the timer (it's done in ha ...
  Topic: 10th minute tracking
mattcro

Replies: 2
Views: 422

PostForum: BASCOM-AVR Archive   Posted: Sat Jan 29, 2011 10:43 pm   Subject: 10th minute tracking
See the Bascom help for CONFIG CLOCK.

You can use the soft clock's internal variables to test for minutes rollover. The minutes are stored in a byte variable named _min so all you have to do is tes ...
 
Page 2 of 22 Goto page Previous  1, 2, 3, ... 20, 21, 22  Next
All times are GMT + 1 Hour
Jump to: