#avr | Logs for 2016-12-01

Back
[01:58:20] <rue_bed> mod?
[01:58:25] <rue_bed> channel owner like?
[01:58:38] <rue_bed> some guy
[01:58:46] <rue_bed> might be around time to time
[02:10:47] * Casper points at rue
[02:10:52] <Casper> TO BED, YOU GO!
[02:42:14] <gnom> o
[02:52:19] <Emil> rue_bed: who has ops
[02:52:28] <Emil> rue_bed: @ in front of nick
[02:52:38] <Emil> (when used in freenode)
[02:54:34] <Casper> ask the bot?
[06:01:53] <deepblue> i'm considering to by 10 AT90S1200 for 1.4 $US.is it a good deal?
[06:02:14] <deepblue> i'm considering to by 10 AT90S1200 for 14 $US.is it a good deal?
[06:02:31] <Tom_L> not as good as 1.4
[06:04:09] <deepblue> i mean you don't get much with this chip.right?
[06:04:47] <Tom_L> dunno but AT90 is old
[06:05:22] <deepblue> it has i geg's of falsh
[06:05:30] <deepblue> it has 1 geg's of falsh
[06:06:51] <skz81> one... what ?
[06:06:55] <skz81> geg ?
[06:07:07] <deepblue> gisorry,ga*
[06:07:22] <deepblue> sorry,giga*
[06:07:38] <skz81> hu, nope it has 1K
[06:07:44] <gjm> nigga u wat
[06:08:00] <deepblue> right
[06:08:09] <deepblue> i forgot.
[06:08:53] <deepblue> this too little,no?
[06:09:15] <skz81> but 64K EEPROM, which is more that most atmega chip (often 0.5, 1 or 2K for chips I played with / or at least read the DS)
[06:09:42] <skz81> <deepblue> this too little,no? >> depends on your actual appliance. But it's few yup
[06:10:47] <deepblue> no .only 64 bytrs as mentioned in datasheet
[06:11:27] <Tom_L> the bargain isn't sounding so good now ehh?
[06:11:33] <skz81> ho misread
[06:11:50] <skz81> indeed 64bytes not 64Kb
[06:12:53] <skz81> Has it some RAM ? I can't find any in the DS
[06:13:01] <skz81> maybe it has only registers
[06:13:50] <deepblue> only 32 registers and n RAM
[06:13:58] <deepblue> no*
[06:15:03] <deepblue> I cant get 10 pcs AT89c2051 for 10 $US more
[06:15:26] <deepblue> I cant get 10 pcs AT89c2051 for 1 $US more
[06:16:04] <deepblue> so which do you suggest?
[06:16:48] <skz81> hu... I (we) can answer question about DS / tech specs / tech problems...
[06:17:07] <skz81> But YOU and only you know your needs
[06:18:39] <deepblue> ok,thanx a lot
[06:19:20] <skz81> deepblue, my general feeling anyway is that they are not suitable for all-round tinkering
[06:20:14] <skz81> I mean : if you need such chip in such qty, they seems OK for the price, but if don't know yet what you will do with them... Maybe better way another deal
[06:20:20] <skz81> wait*
[06:20:51] <skz81> and use your $$$ to buy dev boards ?
[06:21:00] <skz81> (just a suggestion :)
[06:54:14] <Lambda_Aurigae> at80c2051 is not avr either...totally different world...aaand, he left.
[07:04:17] <skz81> Lambda_Aurigae, srly ? I quick read the description, and key params here : http://www.atmel.com/devices/at89c2051.aspx
[07:04:33] <skz81> I did not even notice it was NOT an AVR !! :)
[07:04:53] <Lambda_Aurigae> hehe
[07:05:00] <Lambda_Aurigae> it's an 8051 series chip.
[07:05:10] <Lambda_Aurigae> I have some here.
[07:05:21] <skz81> hooo !! Ok thx for this info !
[07:05:28] <LeoNerd> Ohman, the 8051.. Why will it not die?
[07:06:08] <Lambda_Aurigae> because it just IS
[07:06:20] <Lambda_Aurigae> 8052 rocks in some areas avr drags too.
[07:07:06] <Lambda_Aurigae> I have an 8052 here on a board with a 128K nvsram that is mapped to both program and data space with some bank switching in 32K banks....any 32k bank can be program or data or both.
[07:13:12] <Lambda_Aurigae> 8051/2 is the most used microcontroller in the world I bet.
[07:23:46] <pwillard> years and years of experience says its a worthy device
[07:23:57] <Lambda_Aurigae> http://hackaday.com/2016/12/01/craziest-pin-saving-lcd-trick-ever/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29
[07:24:02] <Lambda_Aurigae> that's an interesting hack.
[07:46:44] <vaskozl> In avr assembly, once an interrupt is begun does it do an implicit cei instruction or do I have to add an instruction that disables it?
[07:47:52] <vaskozl> So once I branch from the interrupt vector, can more interrupts happen?
[07:48:18] <Emil> vaskozl: in assembly you have to do _everything_
[07:48:24] <LeoNerd> Nothing to do with assembly. Once the CPU jumps into an ISR it has the global I bit disabled
[07:48:26] <Emil> in C it'll add seri for you
[07:48:31] <LeoNerd> no other interrupts will happen, unless you happen to enable it
[07:48:38] <Emil> LeoNerd: Are you sure?
[07:48:44] <LeoNerd> Yes; that's what the processor itself does
[07:48:55] <LeoNerd> Has nothing to do with what language you write your code in
[07:49:10] <vaskozl> Ok thanks.
[07:49:12] <Lambda_Aurigae> it's in the datasheet...explains that in detail in the interrupts section.
[07:53:19] <vaskozl> Ah I see it now, the MSB I of SREG, cheers guys.
[12:41:17] <Emil> Hmm
[12:41:43] <Emil> How bad is it to have max 240V through 1Mohm to an avr pin?
[12:42:15] <Emil> I need to have a pullup for a p mosfet but having trouble figuring out a solution to controlling it
[12:42:29] <Tom_L> ac dc?
[12:42:40] <Tom_L> not the best idea
[12:42:44] <Emil> Tom_L: rectified AC
[12:42:58] <Emil> Of course, it is ~325 peak value
[12:43:15] <Emil> Tom_L: Any pointers on how to to control it?
[12:44:01] <Tom_L> opto coupler maybe
[12:44:37] <Tom_L> or n channel
[12:44:58] <Tom_L> gotta run
[12:46:51] <Emil> Tom_L: n channel default to ground is an issue, it leads to a fucking steady state and stops working
[12:47:26] <Emil> Hmm. Opto coupler might work
[13:15:50] <bss36504> Emil: Make sure you check the breakdown voltage of the resistors
[13:16:20] <bss36504> SMD will not work well, unless its something like a 2010
[13:17:14] <bss36504> What are you trying to control?
[13:24:08] <Emil> bss36504: yeah, made sure they were rated foe 400v
[13:25:00] <Emil> bss36504: a custom thingy that's inline/series with ac
[13:34:47] <gnom> C4 hi guys: possible converted this code from atmega48 to atmega8 http://gnome.xonotic.in.ua/dv/avr-no-test/main-3-phase-pwm.c
[13:35:11] <gnom> redefine registeres?
[13:35:19] <gnom> hard for me
[13:35:35] <gnom> :-(
[13:36:36] <gnom> !
[13:36:51] <gnom> sos
[13:36:58] <gnom> sos
[13:41:27] <gnom> help
[13:42:35] <specing> there is no help
[13:44:04] <bss36504> Emil: why not just use a triac like a normal person?
[13:44:30] <LeoNerd> Friends don't let Friends use Triacs ?
[13:44:39] <FL4SHK> Friends is a TV show
[13:44:55] <bss36504> What's wrong with a triac?
[13:44:59] <bss36504> fine, use two SCRs if you want more speed.
[13:53:57] <specing> a triac is two ssrs
[13:54:01] <specing> err scr
[13:54:03] <specing> s
[13:54:05] <specing> meh
[13:54:06] <specing> whatever
[13:55:12] <bss36504> Well, yes and no. Ideally, yes a triac is just two SCRs. In practice, they both have strengths and weaknesses.
[13:56:58] <bss36504> A triac will conduct in both directions, and are generally controllable, but having highly reactive loads where voltage and current are out of phase can cause them to turn back on when they shouldnt be. Also if the current flowing through it changes rapidly they can remain on, despite the control signal
[13:56:58] <bss36504> They are also much slower than SCRs
[13:57:32] <bss36504> SCRs will naturally block reverse currents ("Controlled rectifier", after all)