Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Messages

Browse messages

Page 210 of 307 · 15341 messages matched

Re: [AVR-Chat] Bit logic...

2005-06-13 by Dave VanHorn

At 11:33 AM 6/12/2005, James Hatley wrote: >Hello, > >You may be able to toggle a port bit by writing a 1 to the corresponding >PINx bit. I've not seen it documented anywhere except in the m2560 document. >You might want to try it to see if it works on all AVR processors. Hmm. It

Thread view Attachments: 0

Re: [AVR-Chat] Bit logic...

2005-06-13 by Roy E. Burrage

Looks like the M164/324/644 also have this feature, as well as pin compatibility with the M16/32 series. Maybe someone was listening... REB Henry Carl Ott wrote: >Toggling a pin by writing to the PIN register works on most of the NEWER >processors, but not all of them. > Does wor

Thread view Attachments: 0

Re: [AVR-Chat] bidirectional lcd

2005-06-13 by John Samperi

At 12:38 PM 13/06/2005, you wrote: > >What if you want to know the current cursor position? You can always keep track of where you are in your program, however I always have my LCD bidirectional for both reasons, and of course if you don't need special LCD character you can also

Thread view Attachments: 0

Re: Re: [AVR-Chat] bidirectional lcd

2005-06-13 by ezpcb.com

Hi David All the informations should be kept in RAM of LCD controller and could be read out by Read command. Best Regards Mike High Quality PCB @ the Most Competitive Price http://www.pcbonline.org http://www.ezpcb.com >On Mon, Jun 13, 2005 at 09:45:29AM +0800, Farzlina Ab.Hadi w

Thread view Attachments: 0

Re: [AVR-Chat] bidirectional lcd

2005-06-13 by Farzlina Ab.Hadi

ah-ha ! one good reason for me to change my currently write only buffers. in one of my functions, i need to keep track of the cursor. thank you David. i forgot about that point. -------Original Message------- From: David Kelly Date: 06/13/05 10:31:09 To: AVR-Chat@yahoogroups.com

Thread view Attachments: 0

Re: [AVR-Chat] bidirectional lcd

2005-06-13 by David Kelly

On Mon, Jun 13, 2005 at 09:45:29AM +0800, Farzlina Ab.Hadi wrote: > > is there any reason to read from lcd other than checking the busy flag? What if you want to know the current cursor position? -- David Kelly N4HHE, dkelly@HiWAAY.net ============================================

Thread view Attachments: 0

Re: [AVR-Chat] Bit logic...

2005-06-13 by Brian Dean

On Sun, Jun 12, 2005 at 09:33:26AM -0700, James Hatley wrote: > You may be able to toggle a port bit by writing a 1 to the > corresponding PINx bit. I've not seen it documented anywhere except > in the m2560 document. You might want to try it to see if it works > on all AVR proce

Thread view Attachments: 0

bidirectional lcd

2005-06-13 by Farzlina Ab.Hadi

hi guys, is there any reason to read from lcd other than checking the busy flag? thank you for any reply. elin

Thread view Attachments: 0

Re: [AVR-Chat] Bit logic...

2005-06-13 by Henry Carl Ott

Toggling a pin by writing to the PIN register works on most of the NEWER processors, but not all of them. Does work on m48/88/168. It's a neat trick. It is documented, but you have to be looking for it. -carl At 12:33 PM 6/12/2005, you wrote: >Hello, > >You may be able to toggle

Thread view Attachments: 0

Re: [AVR-Chat] Bit logic...

2005-06-12 by James Hatley

Hello, You may be able to toggle a port bit by writing a 1 to the corresponding PINx bit. I've not seen it documented anywhere except in the m2560 document. You might want to try it to see if it works on all AVR processors. For PORTn and BITx it would be, I think... tgl_bit: sbi

Thread view Attachments: 0

Re: [AVR-Chat] Bit logic...

2005-06-12 by Mark Jordan

Another way of toggling a PORT bit: tgl_bit: sbis PORTC, BIT rjmp sbi_bit clr_bit: cbi PORTC, BIT ret set_bit: sbi PORTC, BIT ret Mark On 12 Jun 2005 at 1:58, Roy E. Burrage wrote: > > I often have to toggle a bit and this is about as short and elegant as I've been > able to do w

Thread view Attachments: 0

Bit logic...

2005-06-12 by Roy E. Burrage

I often have to toggle a bit and this is about as short and elegant as I've been able to do with the AVR. Toggle_A1: ; Toggles PB0 (A1) output state LDI T1,1 ; Set bit 0 in T1 IN T2,PORTB EOR T2,T1 ; XOR T1 and Port B (T2) to toggle PB0 OUT PORTB,T2 RET This routine is called fro

Thread view Attachments: 0

Re: [AVR-Chat] Re: Any ideas on socket for ATmega128/64 ?- Reflow

2005-06-12 by Don Ingram

Michael Haisley wrote: > Tony, as for your note about soldering them, it's not really that > difficult, do you own a cheap toaster oven? > We use both, well a proto reflow oven with profile controller, but a word of caution... Choice of parts that can live in the oven is importan

Thread view Attachments: 0

Re: [AVR-Chat] Re: Any ideas on socket for ATmega128/64 ?

2005-06-11 by Michael Haisley

Tony, as for your note about soldering them, it's not really that difficult, do you own a cheap toaster oven? On 6/10/05, arhodes19044 wrote: > Good question. > > One alternative already suggested is an adapter such as a "surfboard" > or similar. The problem is tha amount of squa

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-11 by Roy E. Burrage

Kat, I believe that if you go into the moderator section of the list web site at yahoo, then the list properties, there is an option that will allow you to select whether HTML and/or attachments will be allowed to be sent to the list. I've just removed myself as moderator from th

Thread view Attachments: 0

Embedding binary data in C code

2005-06-11 by Don Ingram

Hi All, Stumbled across this very simple but nonetheless neat tool when I should have been working ;-) File lives at http://www.azillionmonkeys.com/qed/metac.zip It allows you to create arrays of binary or text data in a C source file. The tool looks for a tag in the source and t

Thread view Attachments: 0

Re: [AVR-Chat] Hacker's Delight

2005-06-11 by Don Ingram

> Try "Hacker's Delight". > > http://www.hackersdelight.org/ > Thanks for the head-up on this Paul. It's in stock at Amazon ( well there's one less in stock now ;-) Cheers Don Paul Curtis wrote: > All, > > >>Mid point is to use smaller table & index it with the upper & >>lower ni

Thread view Attachments: 0

RE: [AVR-Chat] Re: I2C devantech cmp03 problems.

2005-06-11 by wbounce

The compass checks out ok. It works fine alone. As soon as I let it run through the ping and range code the compass code throws errors. Need to check each part (ping and read the range) separately to see which is causing the problem. But that will have to be tomorrow. I am gettin

Thread view Attachments: 0

RE: [AVR-Chat] Re: I2C devantech cmp03 problems.

2005-06-11 by wbounce

Thanks for the reply. As far as pinging all sonars I did that my other bot with 5 sonars with no problem. Then I would read them one after the other with no problem. I had to do that because the I2C bus was inaccessible during the ping. The sonar docs says "the SRF08 will not res

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-10 by erikc

Paul Maddox wrote: > All, > > >> I completely agree with you..... How to organize it ?? Where to put it >>?? It is a real shame to have this kind of knowledge being lost with time >>!! >>New programmers do not even now how to mask flags in bits !! What about a >>sister list in Ya

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by John Samperi

At 08:07 PM 10/06/2005, you wrote: >If you can point me in the right direction I would appreciate it :) I'll send an email to the other list's 'Dad' to see if I can get some info. I have never set up a forum so don't really know. Regards John Samperi *****************************

Thread view Attachments: 0

Re: [AVR-Chat]I2C RTC (PCF8593) alarm problem

2005-06-10 by Jim Wagner

Try the spec sheet? Jim On Thu, 9 Jun 2005 01:42:32 -0700 (PDT) s sunder wrote: > I am doing a project with the use of PCF8593 IC > Interfacing with At89c51 8 bit controllor. > > pcf8593 is a I2C RTC.That is working well, But i have > problem in accesing minute alarm. > > The sec

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by James Hatley

Hello, From my experience, I've not found it necessary to use a socket when building a pcb board prototype. The sockets are usually quite large and costly and you have to design the pcb to handle them. I try to have any bugs worked out before building pcbs. My technique is (usual

Thread view Attachments: 0

Re: Any ideas on socket for ATmega128/64 ?

2005-06-10 by arhodes19044

Good question. One alternative already suggested is an adapter such as a "surfboard" or similar. The problem is tha amount of square inches required for the conversion from smt to 0.1 spacing pins. All those pins take up a huge amount of space!!!! I just do not see how I can reli

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by Jeffrey Engel

Several vendors make adapters. One that comes to mind is: www.sparkfun.com It should be in the Development Board section. You'll have to scroll down near the bottom. HTH, Jeff Engel Arlington, TX --- Alex De Lara wrote: > I just landed on the backyard of the ATmegas and the > fir

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by Kathy Quinlan

John Samperi wrote: > At 04:22 PM 10/06/2005, you wrote: > >>Hi Mike, and others, could we please not post HTML to the list, as it is >>a waste of bandwidth. >> >>To all the members I am sorry that my finger slipped and approved the >>message with out editing out the HTML (maybe

Thread view Attachments: 0

Re: Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by ezpcb.com

Too many spamming, but every group is like this. Best Regards Mike High Quality PCB @ the Most Competitive Price http://www.pcbonline.org http://www.ezpcb.com ================ At 04:22 PM 10/06/2005, you wrote: >Hi Mike, and others, could we please not post HTML to the list, as i

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by John Samperi

At 04:22 PM 10/06/2005, you wrote: >Hi Mike, and others, could we please not post HTML to the list, as it is >a waste of bandwidth. > >To all the members I am sorry that my finger slipped and approved the >message with out editing out the HTML (maybe I should go to bed as I am >s

Thread view Attachments: 0

RE: [AVR-Chat] Re: Challenge - count bits set in byte

2005-06-10 by Paul Curtis

All, > Mid point is to use smaller table & index it with the upper & > lower nibble. Accessing the appropriate nibble still carries > its own overhead so generally all of these get down to the > usual speed/flash usage issues which makes it handy to go to > CPU overkill for anyth

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-10 by Paul Maddox

All, > I completely agree with you..... How to organize it ?? Where to put it > ?? It is a real shame to have this kind of knowledge being lost with time > !! > New programmers do not even now how to mask flags in bits !! What about a > sister list in Yahoo to keep just the "know

Thread view Attachments: 0

Re: Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by ezpcb.com

Hi kat it's ok. the html is default setting on this computer. I must set to text mode manually, sorry. Best Regards Mike High Quality PCB @ the Most Competitive Price http://www.pcbonline.org http://www.ezpcb.com ================ ezpcb.com wrote: > actually I don't think a socket

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by Kathy Quinlan

ezpcb.com wrote: > actually I don't think a socket is necessary for a chip with ICD function. > > Best Regards > > Mike > High Quality PCB @ the Most Competitive Price > http://www.pcbonline.org > http://www.ezpcb.com > Hi Mike, and others, could we please not post HTML to the li

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-10 by Kathy Quinlan

Peter Gargano wrote: > Kathy Quinlan wrote: > >>We have space here on Yahoo, or I can make space available on my server :) > > > Atmel, or someone closely associated with them (AVR freaks???) should > be the people someone asks for space. > > Don't underestimate the works require

Thread view Attachments: 0

Re: Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by ezpcb.com

actually I don't think a socket is necessary for a chip with ICD function. Best Regards Mike High Quality PCB @ the Most Competitive Price http://www.pcbonline.org http://www.ezpcb.com ================ ----- Original Message ----- From: "Alex De Lara" To: Sent: Thursday, June 09,

Thread view Attachments: 0

Re: [AVR-Chat] Any ideas on socket for ATmega128/64 ?

2005-06-10 by Leon Heller

----- Original Message ----- From: "Alex De Lara" To: Sent: Thursday, June 09, 2005 5:10 PM Subject: [AVR-Chat] Any ideas on socket for ATmega128/64 ? >I just landed on the backyard of the ATmegas and the first prototype > is already on my sight.. however, as experience has taugh

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-10 by Peter Gargano

Kathy Quinlan wrote: > We have space here on Yahoo, or I can make space available on my server :) Atmel, or someone closely associated with them (AVR freaks???) should be the people someone asks for space. Don't underestimate the works required to get any information into a coher

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-10 by Kathy Quinlan

Alexandre Guimaraes wrote: > I completely agree with you..... How to organize it ?? Where to put it > ?? It is a real shame to have this kind of knowledge being lost with time !! > New programmers do not even now how to mask flags in bits !! What about a > sister list in Yahoo to

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge - count bits set in byte

2005-06-10 by Don Ingram

Mid point is to use smaller table & index it with the upper & lower nibble. Accessing the appropriate nibble still carries its own overhead so generally all of these get down to the usual speed/flash usage issues which makes it handy to go to CPU overkill for anything other than

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Richard Austin

Paul Curtis wrote: > Hi, > > >>>Indeed! >>> >>>I don't see a lot of this sort of thing anymore, here, or >> >>on the piclist. >> >>>Used to be, several years ago.. >>> >> >>OK - how about another classic problem. Again, fine when you >>know but worth looking for a solution. Effic

Thread view Attachments: 0

RE: [AVR-Chat] Re: Challenge

2005-06-09 by Paul Curtis

Hi, > > Indeed! > > > > I don't see a lot of this sort of thing anymore, here, or > on the piclist. > > Used to be, several years ago.. > > > > OK - how about another classic problem. Again, fine when you > know but worth looking for a solution. Efficient code for > counting the

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Dave VanHorn

> >OK - how about another classic problem. Again, fine when you know but >worth looking for a solution. Efficient code for counting the ones in an >8 or 16 bit value - say for a majority vote or some such. Ah, bit count, like for parity. I've hit that before.

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Peter Harrison

Dave VanHorn wrote: > At 01:34 PM 6/9/2005, James Hatley wrote: > >>Good Job! Jeff ... wg0z ... I wouldn't have thought of that. > > > Indeed! > > I don't see a lot of this sort of thing anymore, here, or on the piclist. > Used to be, several years ago.. > OK - how about another

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Zack Widup

When you learn assembler for a particular device I've always likened it to "learning how to think like that device". Each one has little tricks you can use to shorten or speed up a program. They are all different. I remember tricks I used with a Z-80 that don't work on a PIC or A

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Zack Widup

Yes but can you do it without the push and pop? The original suggestion was to do it without the use of any other registers or places to store it. I figured it had to do with some Boolean operations but didn't sit long enough to figure out which ones. Zack (W9SZ) On Thu, 9 Jun 20

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by Alexandre Guimaraes

I completely agree with you..... How to organize it ?? Where to put it ?? It is a real shame to have this kind of knowledge being lost with time !! New programmers do not even now how to mask flags in bits !! What about a sister list in Yahoo to keep just the "knowledge bits" ??

Thread view Attachments: 0

Re: [AVR-Chat] Distributing wear on EEPROM writes?

2005-06-09 by Neil

I'm doing this (on a PIC) currently -- I virtually sectioned the available EEPROM into sets of 4 bytes each, with each set holding 3 bytes of data and a checksum/validity indicator. Each save writes to the next set in sequence, looping around to the first set when necessary. On p

Thread view Attachments: 0

Re: [AVR-Chat] Re: Challenge

2005-06-09 by stevech@san.rr.com

and to swap two registers: and ye ole: push r1 mov r1,r2�� ; r1 = r2 pop r2 more cycles than eor's � ----- Original Message ----- From: Andreas Stemmer Date: Thursday, June 9, 2005 11:28 am Subject: Re: [AVR-Chat] Re: Challenge > > How do you swap the contents of 2 registers with

Thread view Attachments: 0

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.