Forum - MCS Electronics

 Search found 518 matches
Author Message
KenHorse

Replies: 26
Views: 620

Forum: 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
KenHorse

Replies: 26
Views: 620

Forum: 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
KenHorse

Replies: 26
Views: 620

Forum: 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
KenHorse

Replies: 26
Views: 620

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

Replies: 26
Views: 620

Forum: 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
KenHorse

Replies: 26
Views: 620

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

Replies: 26
Views: 620

Forum: 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)
KenHorse

Replies: 26
Views: 620

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

RELAY = True 'energize
Else
RELAY = False 'de-e ...
KenHorse

Replies: 26
Views: 620

Forum: 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 ...
KenHorse

Replies: 6
Views: 561

Forum: 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?
KenHorse

Replies: 6
Views: 561

Forum: 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 ...
KenHorse

Replies: 6
Views: 561

Forum: 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 ...
KenHorse

Replies: 6
Views: 561

Forum: 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 ...
KenHorse

Replies: 1
Views: 317

Forum: 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

Forum: 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  NextAll times are GMT + 1 Hour
 Jump to: Select a forum BASCOM AVR/8051----------------BASCOM-AVRBASCOM-8051BASCOM-ARDUINOShare your working BASCOM-8051 code hereShare your working BASCOM-AVR code hereBASCOM BETA-SLA BASCOM Related----------------EASY TCP/IPAVR-DOSAR7212KokkeKat FAT-free SD card libBASCOM Project Blog Other Stuff----------------VariousPCB'sRoboticsNew WebSiteAnnouncementsAVR Archive----------------BASCOM-AVR ArchiveBASCOM-8051 ArchiveBASCOM-AVR Unsupported versionsEasy TCP/IP ArchiveBASCOM-EDB