Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 138 matches
www.mcselec.com Forum Index
Author Message
  Topic: pulse length capture
philm

Replies: 22
Views: 1217

PostForum: BASCOM-AVR Archive   Posted: Mon Mar 04, 2013 3:12 am   Subject: Re: pulse length capture
here are some snips of code.
Not sure about the value of incomplete code missing all its variable definitions. Also one of your code's problems is it's unhandled race-condition, when the overflow int ...
  Topic: pulse length capture
philm

Replies: 22
Views: 1217

PostForum: BASCOM-AVR Archive   Posted: Sat Mar 02, 2013 7:19 am   Subject: Re: pulse length capture

I'm trying to measure a pulselength. On int0 and 1 i connecting a square wave of 20 to 200Hz.
I expect a stable reading, but this is completly precarious.
Must i use "no save" on INT0 and 1?
Can ...
  Topic: Mark Space ratio up side down
philm

Replies: 0
Views: 288

PostForum: BASCOM-AVR Unsupported versions   Posted: Sun Feb 10, 2013 6:08 am   Subject: Mark Space ratio up side down
I have written some code to measure the mark / space ratio but it's the wrong way
ie with a big mark / space ratio applied the space number is smaller.
All the numbers calculate correct, just upside ...
  Topic: INTx NOSAVE
philm

Replies: 19
Views: 687

PostForum: BASCOM-AVR Archive   Posted: Mon Jan 28, 2013 9:16 am   Subject: INTx NOSAVE
This still does not answer the original question.
If I only use Bascom code in the ISR, how do I determine which registers to save????

You could work out what registers are used, by adding extra d ...
  Topic: Input Caputre
philm

Replies: 2
Views: 285

PostForum: BASCOM-AVR Archive   Posted: Sun Jan 27, 2013 12:44 am   Subject: Input Caputre
Thanks Visovian,
Changed it mode 0 and it all works.

Well........... apart from other problems I have created Laughing
  Topic: Input Caputre
philm

Replies: 2
Views: 285

PostForum: BASCOM-AVR Archive   Posted: Sat Jan 26, 2013 8:17 am   Subject: Input Caputre
Hello Gents, and Ladies.
I havn't played with AVRs and Bascom for about 5 years.

Im having problems with counter 1 in a mega128
I want to use it to capture the timestamp of external events, just ...
  Topic: Wav Recorder & Player
philm

Replies: 4
Views: 3276

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Aug 29, 2008 5:29 am   Subject: Wav Recorder & Player
The fat16/32 driver can be downlaoded here.
http://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=download&id=30
  Topic: User Libraries
philm

Replies: 8
Views: 981

PostForum: BASCOM-AVR Archive   Posted: Fri Mar 09, 2007 4:15 am   Subject: User Libraries

An END SUB or END FUNCTION will place a RETURN at that spot (unknown to you). Simply putting RETURN will perform the same action.
An END SUB or END FUNCTION also releases local variables back to th ...
  Topic: speedometer calibration
philm

Replies: 1
Views: 906

PostForum: Various   Posted: Mon Feb 26, 2007 10:59 am   Subject: speedometer calibration
Worked it out.
637rev = 1km & the sensor gives 4 pulses per rev
So, everything was out by a factor of 4.
100klm/h = 70.8Hz
  Topic: speedometer calibration
philm

Replies: 1
Views: 906

PostForum: Various   Posted: Mon Feb 26, 2007 5:38 am   Subject: speedometer calibration
Hello all.
The odometer in my car failed, I opened it up, and fixed it (broken plastic lever). In order to repair it, I had to remove the needle of the speedometer. Now the speedometer is out of cali ...
  Topic: How to load adress of array(0) into pointer register?
philm

Replies: 16
Views: 1283

PostForum: BASCOM-AVR Archive   Posted: Wed Oct 18, 2006 5:25 am   Subject: How to load adress of array(0) into pointer register?
If you want to load the value (in r16) of the previous location of K(1) you could try lds r16, {K(1)-1} .
The complier should be able to resolve K(1)-1 at complie time. I don't have bascom installed ...
  Topic: subdirectory corrupted (sector missing "." and &qu
philm

Replies: 3
Views: 1148

PostForum: AVR-DOS   Posted: Tue Oct 17, 2006 1:03 am   Subject: subdirectory corrupted (sector missing "." and &qu
fun and games
From reading some sandisk documents, I understand that wear leveling is all taken care of within the card and its firmware. So it's not something you have to worry about.
Have you trie ...
  Topic: FORUM problem
philm

Replies: 15
Views: 5918

PostForum: New WebSite   Posted: Sat Aug 19, 2006 10:54 am   Subject: FORUM problem
I have the same problem
Internet explorer
Version 6.0.29 SP 2
  Topic: Terminal Control Code from AVR to Hyperterm
philm

Replies: 2
Views: 483

PostForum: BASCOM-AVR Archive   Posted: Mon May 29, 2006 3:47 am   Subject: Terminal Control Code from AVR to Hyperterm
Use printbin.
'***************************************************************
'ANSI Clear Screen
'***************************************************************
Ansicls:
Printbin 27 ; 91; ...
  Topic: Sub with Optional Arguments
philm

Replies: 5
Views: 638

PostForum: BASCOM-AVR Archive   Posted: Sun Feb 12, 2006 10:05 am   Subject: Sub with Optional Arguments
Might be more efficient if you dropped the sub "Mylcdcommand" and just used the code contained within it in the subs that actually use it.

And do you think there is a way to alterate the normal lcd ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT + 1 Hour
Jump to: