Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 661 matches
www.mcselec.com Forum Index
Author Message
  Topic: Extract Digit from Byte
EDC

Replies: 4
Views: 306

PostForum: BASCOM-AVR Archive   Posted: Thu May 08, 2014 7:59 pm   Subject: Extract Digit from Byte
Try this Wink


$sim

Dim Help As Integer
Dim X As Integer
Dim A(3) As Byte
Dim I As Byte

Cls

X = 587

For I = 1 To 3
Help = X Mod 10
A(i) = Help
X = X / 10
Next I ...
  Topic: Changing Pin Direction
EDC

Replies: 6
Views: 297

PostForum: BASCOM-AVR Archive   Posted: Thu May 08, 2014 9:29 am   Subject: Changing Pin Direction
I think You don`t need do nothing. That pin is normal to the moment when You execute command "getADC". Then the microprocessor measures the value in quiet mode
  Topic: Reading content of variable with terminal? How?
EDC

Replies: 18
Views: 715

PostForum: BASCOM-AVR Archive   Posted: Tue May 06, 2014 10:28 pm   Subject: Reading content of variable with terminal? How?
Good solution to get know is enything is transmited from uC is : Take headphones eg. from Skype or whatever Razz Connect earth of headphones to earth of device and take capacitor 1uF - 2,2uF and listeni ...
  Topic: Warning: accessing bit variables are not atomic
EDC

Replies: 11
Views: 1148

PostForum: BASCOM-AVR Archive   Posted: Tue May 06, 2014 2:52 pm   Subject: Warning: accessing bit variables are not atomic
Another summary I read yesterday on forum here
http://mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11861&highlight=ds1821&sid=b7e80640645a6591e894ba93a235b4 ...
  Topic: Do Nothing Loop
EDC

Replies: 8
Views: 417

PostForum: BASCOM-AVR Archive   Posted: Mon May 05, 2014 8:23 pm   Subject: Do Nothing Loop
- I use a port on the uC to power the swtiches. But I could still read in advance during the sleep cycle, so long as the timer is firing.

Time ago i was build device on small ATtiny2313 with 3x7s ...
  Topic: Config 1WIRE PORT-PIN ?
EDC

Replies: 1
Views: 237

PostForum: BASCOM-AVR Archive   Posted: Fri May 02, 2014 5:25 pm   Subject: Config 1WIRE PORT-PIN ?
Hello. My friend can`t read DS18B20 on PORTD.0 in ATmega16 (ressistor attached)
Program run on test board on PORTD.7 successfully but don`t work on target board.

PORTD.0 is a RXD for RS232 but no ...
  Topic: wait vs timer
EDC

Replies: 21
Views: 974

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 29, 2014 1:42 pm   Subject: wait vs timer
In interrupts routines we try to not using ANY delay.
For this "job" a Time to interrupt should be delay.
In your code Return instruction dont have place to return Very Happy

Try this
$regfile = " ...
  Topic: MEGAMOS / RES datasheet
EDC

Replies: 0
Views: 328

PostForum: Various   Posted: Mon Apr 28, 2014 10:25 pm   Subject: MEGAMOS / RES datasheet
Hello. If anyone have som info about Megamos / RES chip please share. I have a lot of Immobox`es from cars and want use that chip like EM9540 (seems to be similar).
Thanks for any reply
  Topic: wait vs timer
EDC

Replies: 21
Views: 974

PostForum: BASCOM-AVR Archive   Posted: Sun Apr 27, 2014 2:44 pm   Subject: wait vs timer
I write It by night and when now look into code i see so instruction "Incr Hours" must be after "End select" of Hours and before Writing to Eeprom

Time_check:

Select Case Minutes

Case 60 ...
  Topic: wait vs timer
EDC

Replies: 21
Views: 974

PostForum: BASCOM-AVR Archive   Posted: Sun Apr 27, 2014 2:26 pm   Subject: wait vs timer
You can try but the internal oscillator is not very accurate. For short procedures is sufficient but I would advise here external oscillator. Therefore, Timer 1 is loaded into a constant. It can be ch ...
  Topic: wait vs timer
EDC

Replies: 21
Views: 974

PostForum: BASCOM-AVR Archive   Posted: Sat Apr 26, 2014 10:14 pm   Subject: wait vs timer
Hello. Tell us what freq of oscilator you use. In new chip you have Divider by 8 and internal oscillator set by factory so freq is 1MHz.
If you want some other freq for your project then you must ch ...
  Topic: wait vs timer
EDC

Replies: 21
Views: 974

PostForum: BASCOM-AVR Archive   Posted: Thu Apr 24, 2014 8:53 am   Subject: wait vs timer
I'm interested in what this device works. Is man at work? Very Happy And what if you do not press a button? Show for which it was not, or only seven leds lights?
  Topic: Speedometer prescaler
EDC

Replies: 6
Views: 387

PostForum: BASCOM-AVR Archive   Posted: Fri Mar 28, 2014 9:07 am   Subject: Speedometer prescaler
S_pulses should contain a Byte..if not I can short the time for sampling to 500ms.
Differences in the displayed speed are visible at higher speeds. The max displayed speed is 140 Km/h at now..
This ...
  Topic: Speedometer prescaler
EDC

Replies: 6
Views: 387

PostForum: BASCOM-AVR Archive   Posted: Thu Mar 27, 2014 3:27 pm   Subject: Speedometer prescaler
Okay..that code work. If any one can optimize this, will be great.
It use 95% of flash space.
$regfile = "attiny2313.dat"
$crystal = 8000000

Config Portb = &B00001000 : Portb ...
  Topic: Speedometer prescaler
EDC

Replies: 6
Views: 387

PostForum: BASCOM-AVR Archive   Posted: Thu Mar 27, 2014 2:35 pm   Subject: Speedometer prescaler
Thanks for reply. Its my fault and now I read them all, but I thing my problem is different.
I dont want to shoot for a fly with a cannon Very Happy so want use small Tinny2313.
I dont need to display any ...
 
Page 44 of 45 Goto page Previous  1, 2, 3 ... , 43, 44, 45  Next
All times are GMT + 1 Hour
Jump to: