Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 387 matches
www.mcselec.com Forum Index
Author Message
  Topic: absolute value of difference
Arera

Replies: 8
Views: 875

PostForum: BASCOM-AVR   Posted: Tue Jul 02, 2019 9:12 am   Subject: absolute value of difference
Hi all,

working with unsigned vars, calculating the absolute value of the difference between to vars afforts a couple of steps.

Example using byte-constants:

89-5 = 84 'OK

5-89 = 171 'not ...
  Topic: PCINT does not work on every input-pin
Arera

Replies: 6
Views: 734

PostForum: BASCOM-AVR   Posted: Sun Jun 23, 2019 2:15 pm   Subject: PCINT does not work on every input-pin
OK. Got it.

In difference to "sjgfjhasgfuzawgu" (will not be compiled), "ON PCINT18 my_ISR" will compile. That lead my to assume that this is a valid Interrupt. That lead me to use PCINT1, expectin ...
  Topic: PCINT does not work on every input-pin
Arera

Replies: 6
Views: 734

PostForum: BASCOM-AVR   Posted: Sun Jun 23, 2019 12:22 pm   Subject: PCINT does not work on every input-pin
MWS, I got it.
PCMSK0 relates to Pinb.on PCINT18 isr18

meant for?
  Topic: PCINT does not work on every input-pin
Arera

Replies: 6
Views: 734

PostForum: BASCOM-AVR   Posted: Sun Jun 23, 2019 11:07 am   Subject: PCINT does not work on every input-pin
Hello,
I'm working on pin-change-interrupt to get SW-Uart to work. I'm encountering problems, so I stripped down the thing to the essenrtial.
As you can seen, I achive to trigger PCINT on pulsed out ...
  Topic: Watchdog fuse bit
Arera

Replies: 33
Views: 1974

PostForum: BASCOM-AVR   Posted: Fri Sep 09, 2016 12:10 pm   Subject: Watchdog fuse bit
It seems to me, we are running into an dead end here.
Actually it is only about a watchdog, it is not THAT tricky, I think.
I always use the WD, and I never needed to worry about ASM-code and stuff. ...
  Topic: Adding date to EEPROM when programming device
Arera

Replies: 10
Views: 649

PostForum: BASCOM-AVR   Posted: Tue Jan 12, 2016 2:58 pm   Subject: Adding date to EEPROM when programming device
Option 43:

Think of letting the Date/Time thing down. What meaning does it have, in case the item stays in the shelf for 7 month.
Rather use serial numbers. Note whatever information which is usef ...
  Topic: Why does double come out wrong in HEX
Arera

Replies: 14
Views: 729

PostForum: BASCOM-AVR   Posted: Mon Nov 23, 2015 5:22 pm   Subject: Why does double come out wrong in HEX
From the HELP (Fundamentals):

Double: 8 Bytes; 5.0 x 10^–324 to 1.7 x 10^308; Doubles are stored as signed 64 bit binary numbers

in short words: assigning FFF... all over a double does not re ...
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Wed Sep 16, 2015 7:17 am   Subject: Holding a value in a variable.
My last attempt: g

show us at least a snippet of code that shows how you measure V11 and V12, and how getting V12 affects the content of V11. Rolling Eyes
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Tue Sep 15, 2015 10:05 pm   Subject: Holding a value in a variable.
Ok, we are shifting from SW to HW.
If V11 equals V12, and that is not what you expect, you need to find out what is going wrong.
HW could have an error.
SW could have errors.
Your expectations ...
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Tue Sep 15, 2015 12:23 pm   Subject: Holding a value in a variable.
yes I agree with MEISTER, extra vars for the Results are needed, and shure even some more.
Be generous with vars, there are a lot of then avaliable in most chips...

I guess the TO cannot see the w ...
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Tue Sep 15, 2015 9:03 am   Subject: Holding a value in a variable.
Hmmmm....
If you need to handle 8 cells having 2 values (load on/off), I'd expect 16 variables!
Vcell1_off
Vcell1_on
Vcell2_off
.
.
.
Vcell8_on

to keep it simple in the first attempt, I'd n ...
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Tue Sep 15, 2015 6:58 am   Subject: Holding a value in a variable.
V2 and V1 cant be differentiated as both are reading the same adc and cell.
But you GET V1 without load, then switch on the load, then GET V2, right?

Now threr are 8 cells; I STILL don't get what ...
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Mon Sep 14, 2015 7:13 pm   Subject: Holding a value in a variable.
I almost do not dare to ask you:
Do you know how to use variables?
Dim V1 as word
Dim V2 as word
  Topic: Holding a value in a variable.
Arera

Replies: 25
Views: 1240

PostForum: BASCOM-AVR   Posted: Mon Sep 14, 2015 4:59 pm   Subject: Holding a value in a variable.
I still don't get what you are trying to do.
Afaiu you get the bat voltage, then put a load on the bat and measure again.
This way you find the inner resistance, right?
Then you repeat this to fi ...
  Topic: F2F Magstripe library?
Arera

Replies: 1
Views: 319

PostForum: BASCOM-AVR   Posted: Tue Aug 25, 2015 11:40 am   Subject: F2F Magstripe library?
I've used the intellihead shift-out reading-head by magtek with success. If you are interested, let me know!

From datasheet (messy format...):
MagTek’s
Shift
-
Out
IntelliHead
consists of a ...
 
Page 2 of 26 Goto page Previous  1, 2, 3, ... 24, 25, 26  Next
All times are GMT + 1 Hour
Jump to: