Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 518 matches
www.mcselec.com Forum Index
Author Message
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:45 am   Subject: ADC in ATTINY13
When the voltage drops below "29", de-activate a relay. When it rises above, activate the relay
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:36 am   Subject: ADC in ATTINY13
In the schematic representation we can see that the fixed terminals are 1 and 2, while the cursor is the number 3, which is represented by an arrow.

I don't follow
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:35 am   Subject: ADC in ATTINY13
JP1 at 12 volts? Feed yourself with 5 volts.

IC2 is a 5 volt regulator
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:17 am   Subject: ADC in ATTINY13
Schematic
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:13 am   Subject: ADC in ATTINY13
Yes. connected to physical pin 1 through a 470 ohm resistor with a 5.1 volt zener diode to ground on the pin 1 side
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:06 am   Subject: ADC in ATTINY13
ADC0 is Pin 1 not 5
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 2:44 am   Subject: ADC in ATTINY13
1023 = 5
29 = X

X = 0.1417 voltios.
Yes but that doesn't explain why I'm only seeing .5 volts as a logic high (the transition above and below works ok)
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 2:43 am   Subject: ADC in ATTINY13
not that way.

If GetADC(0) < 29 Then
RELAY = True 'energize
Else
RELAY = False 'de-e ...
  Topic: ADC in ATTINY13
KenHorse

Replies: 26
Views: 620

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 1:20 am   Subject: ADC in ATTINY13
I've been using the ADC in Mega128, 2561 and 2560 for years and never had an issue. However, I have a need for a very simple voltage comparator and figured I'd press some Tiny13's I have laying around ...
  Topic: Bootloader being overwritten during program execution?
KenHorse

Replies: 6
Views: 561

PostForum: BASCOM-AVR   Posted: Thu Dec 10, 2020 8:55 pm   Subject: Bootloader being overwritten during program execution?
So what's the difference(s) between preventing SPM and/or LPM from "accessing" the bootloader?
  Topic: Bootloader being overwritten during program execution?
KenHorse

Replies: 6
Views: 561

PostForum: BASCOM-AVR   Posted: Wed Nov 11, 2020 12:48 am   Subject: Bootloader being overwritten during program execution?
You can also set a fuse to disable writing to the bootloader area. Obviously, do this after installing the bootloader !

And for added general security, set another fuse bit to prevent any read a ...
  Topic: Bootloader being overwritten during program execution?
KenHorse

Replies: 6
Views: 561

PostForum: BASCOM-AVR   Posted: Wed Nov 11, 2020 12:47 am   Subject: Bootloader being overwritten during program execution?
Are you using

Yes but doesn't that just protect that a program won't compile larger than is safe for the bootloader? In other words, if I know the compiled code size won't invade the bootloader mem ...
  Topic: Bootloader being overwritten during program execution?
KenHorse

Replies: 6
Views: 561

PostForum: BASCOM-AVR   Posted: Tue Nov 10, 2020 9:51 pm   Subject: Bootloader being overwritten during program execution?
I'm running the Bascom bootloader in an M2561 and may have experienced the loaded program overwriting (or partially overwriting) the bootloader. And while I have seen loading too large a program into ...
  Topic: Last occurrence of a day of the month
KenHorse

Replies: 1
Views: 317

PostForum: BASCOM-AVR   Posted: Sun Oct 04, 2020 6:22 pm   Subject: Last occurrence of a day of the month
I've been using the following to determine the nth occurrence of a day of the month and it works well:

Function DayNameCountCurrentMonth() As Byte

Local Temp_day As Integer
Local Da ...
  Topic: IDE problem with 2.0.8.2
KenHorse

Replies: 1
Views: 320

PostForum: BASCOM-AVR   Posted: Wed Sep 23, 2020 3:56 pm   Subject: IDE problem with 2.0.8.2
UPDATE: Found the issue in the .xml file

Under
ClassName=TdxDockPanel
Name=pnlFindResult

Visible was set to 1. I set to 0 and the window went away. Find in files seems to work properly again. ...
 
Page 1 of 35 Goto page 1, 2, 3 ... 33, 34, 35  Next
All times are GMT + 1 Hour
Jump to: