Yahoo Groups archive

AVR-Chat

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

Messages

Browse messages

Page 241 of 307 · 15341 messages matched

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Stefan Trethan

On Mon, 31 Jan 2005 09:47:06 -0600, Mike Perks wrote: > > Stefan, > I have been following this thread with interest so let me throw in my 2 > cents. > Different program languages and assembly languages have different pros > and cons. Some make life easier generally at the expense

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-31 by Kathy Quinlan

Dave VanHorn wrote: > >>Why can you not use your RH server and use SSH if it is not local :) > > > Mostly because nof it's stubborn non-existence. It broke again ? If you join the yahoo group cvsgui (which is on wincvs and also covers cvsnt (which is not just for NT, but *nix, Ma

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by ethan@bufbotics.org

Mike Perks said: > > Const Motor_Enable_Pin as Byte = 22 > Const Turn_Motor_On as Byte = bxOutputHigh > Const Turn_Motor_Off as Byte = bxOutputLow > ... > Sub Main() > ... > call PutPin(Motor_Enable_Pin, Turn_Motor_On) > ... > End Sub > Mike, Thanks for the info. The code you lay

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Leon Heller

----- Original Message ----- From: "Stefan Trethan" To: Sent: Monday, January 31, 2005 4:29 PM Subject: Re: [AVR-Chat] accessing bits (e.g. of ports) > > On Mon, 31 Jan 2005 15:44:06 -0000, Leon Heller > wrote: > >> In most languages, including C, you can't manipulate individual

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Mike Perks

Stefan, I have been following this thread with interest so let me throw in my 2 cents. Different program languages and assembly languages have different pros and cons. Some make life easier generally at the expense of abstracting away detail. Without trying to over generalize her

Thread view Attachments: 0

RE: [AVR-Chat] tiny26, motor driver, and ISP

2005-01-31 by ethan@bufbotics.org

Larry Barello said: > Don't use the enable line for PWM input. Use the complementary PWM > outputs > to drive the A & B side of the H-Bridge and use the enable line to, > well, > enable the driver. > Larry, Thank you for the feedback. I hadn't thought of using PWM on the A and B

Thread view Attachments: 0

Re: tiny26, motor driver, and ISP

2005-01-31 by alan_probandt

...set A=1 and B=0 for a motor. It'll go clockwise. Similarly, set A=0 and B=1, and I get reverse (counter clockwise). And the PWM signal on the Enable line then turns the motor on for only small snippets of time, as defined by the duty-cycle. The Pulse Width Modulation signal is

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Stefan Trethan

On Mon, 31 Jan 2005 09:47:49 -0500 (EST), wrote: > > > if (turn_motor_on) { > setbit(MOTOR_ENABLE_PORT, MOTOR_ENABLE_PIN); > } else { > clrbit(MOTOR_ENABLE_PORT, MOTOR_ENABLE_PIN); > } > > Personally, I would prefer something like..... > > write_bit(turn_motor_on, MOTOR_ENABLE_PO

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by ethan@bufbotics.org

While we're on this topic, I'll add in my own "grievance". >> #define setbit(ADDRESS,BIT) ((ADDRESS) |= (1 > #define clrbit(ADDRESS,BIT) ((ADDRESS) &= ~(1 if (turn_motor_on) { setbit(MOTOR_ENABLE_PORT, MOTOR_ENABLE_PIN); } else { clrbit(MOTOR_ENABLE_PORT, MOTOR_ENABLE_PIN); } Per

Thread view Attachments: 0

DS1302 routines

2005-01-31 by javierfiasche

does anyone have ds1302 RTC routines. I'am trying to use the ones that come with codevision avr, but i dont happen to have succes. if anyone knows how to use them to set rtc and print to an Lcd date an time please tell me Examples welcome Thsanks a lot!!!!! Javier.

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Leon Heller

----- Original Message ----- From: "Stefan Trethan" To: Sent: Monday, January 31, 2005 3:13 PM Subject: Re: [AVR-Chat] accessing bits (e.g. of ports) > > On Mon, 31 Jan 2005 09:47:49 -0500 (EST), wrote: > >> >> >> if (turn_motor_on) { >> setbit(MOTOR_ENABLE_PORT, MOTOR_ENABLE_PIN

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Stefan Trethan

On Mon, 31 Jan 2005 14:21:19 +0100, Svenn Dahlstrøm wrote: > I use ICCAVR and do it this way : > #define setbit(ADDRESS,BIT) ((ADDRESS) |= (1 #define clrbit(ADDRESS,BIT) ((ADDRESS) &= ~(1 #define chkbit(ADDRESS,BIT) ((ADDRESS) & (1 #define togglebit(ADDRESS,BIT) ((ADDRESS) ^= (1

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-31 by Dave VanHorn

> >Why can you not use your RH server and use SSH if it is not local :) Mostly because nof it's stubborn non-existence.

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Svenn Dahlstrøm

I use ICCAVR and do it this way : #define setbit(ADDRESS,BIT) ((ADDRESS) |= (1 > > Hi, > > what is the easiest way to access single bits of ports (SFRs)? > > i have found msg00020.html> with google. > > This: > PORTC |= _BV(0);. > is madness ;-). I'm doing this for a hobby and st

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Stefan Trethan

On Mon, 31 Jan 2005 12:31:51 -0000, Paul Maddox wrote: > > Stefan, > >> Why, and if yes how, can i get something like that: >> PORTC.0 = 1; >> or >> PC0 = 1; >> or if it must be >> PORTC.BIT0 =1; > why don't you use #define? > to do some of this? > A lot depends on your compiler,

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Paul Maddox

Sven > #define setbit(ADDRESS,BIT) ((ADDRESS) |= (1 #define clrbit(ADDRESS,BIT) ((ADDRESS) &= ~(1 #define chkbit(ADDRESS,BIT) ((ADDRESS) & (1 #define togglebit(ADDRESS,BIT) ((ADDRESS) ^= (1

Thread view Attachments: 0

Re: [AVR-Chat] accessing bits (e.g. of ports)

2005-01-31 by Paul Maddox

Stefan, > Why, and if yes how, can i get something like that: > PORTC.0 = 1; > or > PC0 = 1; > or if it must be > PORTC.BIT0 =1; why don't you use #define? to do some of this? A lot depends on your compiler, for example CV-AVR is happy with ;- PORTC.0 = 1; PAul

Thread view Attachments: 0

accessing bits (e.g. of ports)

2005-01-31 by stefan_trethan

Hi, what is the easiest way to access single bits of ports (SFRs)? i have found with google. This: PORTC |= _BV(0);. is madness ;-). I'm doing this for a hobby and stuff like that causes me to loose my interest in it. I need to think 30 minutes until i know what i have to write,

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-31 by Kathy Quinlan

Dave VanHorn wrote: > > Argh. > > I've DL'd a windows version of a CVS server, but all the docs are in unix. > > Does anyone have a pointer to a quickstart or intelligible doc for CVSNT? > > I have the docs printed, but like most unix apps, it seems to assume you > want to make a

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-31 by Bernd Felsche

On Monday 31 January 2005 11:36, Dave VanHorn wrote: > I've DL'd a windows version of a CVS server, but all the docs are > in unix. In Unix? You mean too concise or too extensive? :-) > Does anyone have a pointer to a quickstart or intelligible doc for > CVSNT? > I have the docs

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-31 by Dave VanHorn

Argh. I've DL'd a windows version of a CVS server, but all the docs are in unix. Does anyone have a pointer to a quickstart or intelligible doc for CVSNT? I have the docs printed, but like most unix apps, it seems to assume you want to make a career of admiring it's structural lo

Thread view Attachments: 0

Re: [AVR-Chat] tiny26, motor driver, and ISP

2005-01-30 by Ron

Greetings, Take a look at chip # M74HC4053B1R. It adds a chip to your project but buys the protection of some connected device being under control during programming. Ron ----- Original Message ----- From: ethan@bufbotics.org To: AVR-Chat@yahoogroups.com Sent: Sunday, January 30,

Thread view Attachments: 0

RE: [AVR-Chat] tiny26, motor driver, and ISP

2005-01-30 by Larry Barello

Don't use the enable line for PWM input. Use the complementary PWM outputs to drive the A & B side of the H-Bridge and use the enable line to, well, enable the driver. -----Original Message----- From: ethan@bufbotics.org I built a circuit that uses an ATtiny26 for control and an

Thread view Attachments: 0

tiny26, motor driver, and ISP

2005-01-30 by ethan@bufbotics.org

I built a circuit that uses an ATtiny26 for control and an SN754410NE motor driver (ultimately destined for a line-following hobby robot). It works nicely and I have full control over the motors using pins PB1 & PB3 to control the enable pins on the motor driver. I also have an A

Thread view Attachments: 0

Quickstart for Engineers, fuse bits

2005-01-30 by stefan_trethan

Hi, i'm looking for a good AVR C guide, using winavr. I have programmed other micros before in C and ASM and all the guides i come across linger for pages on how to install the software in windows and don't give details on the parts i struggle with. I do only want to use C for no

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-30 by Dave VanHorn

At 08:48 PM 1/29/2005, Eric wrote: >Come on you ............................ people > >sorry I half described the problem, I have downloaded some data sheets, I >will try and make another >effort so we don't get a lot of ................... people making jokes > >But for me the t

Thread view Attachments: 0

RE: [AVR-Chat] Interrupts

2005-01-30 by stevech

"I was really asking is there a Atmel series where you dont need to poll?" YES - all series -----Original Message----- From: Eric [mailto:erichards@clear.net.nz] Sent: Saturday, January 29, 2005 11:24 AM To: AVR-Chat@yahoogroups.com Subject: Re: [AVR-Chat] Interrupts ignore the o

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-30 by Eric

Come on you ............................ people sorry I half described the problem, I have downloaded some data sheets, I will try and make another effort so we don't get a lot of ................... people making jokes But for me the thread has gone off, and think I might be was

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-30 by Matthew Cook

At 21:26 29/01/2005, Kat wrote: > > PS: How did you go with your Ham License ? > >You know, put on the back burner :( Noooooooooo....... Now that is a bummer ! Keep at it, I'm sure you'll find some spare time in there somewhere ... I was looking forward to catching up on a repeat

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-30 by Bernd Felsche

On Sunday 30 January 2005 02:37, Eric wrote: > I first learnt about microprocessors on the Motorola 6800 family > back in the mid 70's > > They are great, the timers/counters have hardware interrupts, when > they are activated (like a timers/counters flag been set) , it > sends t

Thread view Attachments: 0

RE: [AVR-Chat] Interrupts

2005-01-30 by stevech

My oh my, Eric - I was really asking is there a Atmel series where you dont need to poll? What part of "Yes, ALL the AVRs do" don't you get????? A program may use interrupts or polling for I/O events.

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Zack Widup

Whenever I take on a new device of any kind to use, the first thing I do is get the data sheet and study it as much as necesary in order to really understand how the device works. I went over some of the first AVR data sheets I had probably 20 times or so before I wrote my first

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Dave VanHorn

> >However the Atmel products don't seem to have this feature, the software >have to continually look to see >if the timers/counters flag have been set, with a software loop. Oh my god, all my applications just stopped working!

Thread view Attachments: 0

Re: [AVR-Chat] Re: Big data memory

2005-01-29 by Dave VanHorn

At 10:57 AM 1/29/2005, assault_wolf wrote: >OK, one thing everyone seems to be doing is assuming you need to >actually keep the data in case of a power bump. Unfortunately, that is a valid assumption. I've found a part, a gigabit NAND-Flash from ST, that has serial and 8/16 bit i

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- From: "Eric" To: Sent: Saturday, January 29, 2005 7:23 PM Subject: Re: [AVR-Chat] Interrupts > > ignore the one sent a minute ago > > > Hi Leon and all else > > I have been all over that, "polling" is the word I should of used in the > posting that st

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- From: "Eric" To: Sent: Saturday, January 29, 2005 7:19 PM Subject: Re: [AVR-Chat] Interrupts > > Hi Leon > > I have been all over that, "polling" is the word I should of used in the > posting that stated this thread. > > My point was have software loo

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Eric

ignore the one sent a minute ago Hi Leon and all else I have been all over that, "polling" is the word I should of used in the posting that stated this thread. My point was having software loops that just spend all day polling the flags to see if they are set seems to be such a w

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Eric

Hi Leon I have been all over that, "polling" is the word I should of used in the posting that stated this thread. My point was have software loops that just spend all day polling the flags to see if they are set seems to be such a waste of resources, I think the Motorola concept

Thread view Attachments: 0

RE: [AVR-Chat] Interrupts

2005-01-29 by stevech

The Atmel chips' timers, like most all micro's, have interrupts (as you describe) for timers, UART and many other I/O events. -----Original Message----- From: Leon Heller [mailto:leon.heller@dsl.pipex.com] Sent: Saturday, January 29, 2005 10:49 AM To: AVR-Chat@yahoogroups.com Sub

Thread view Attachments: 0

Interrupts

2005-01-29 by Eric

I first learnt about microprocessors on the Motorola 6800 family back in the mid 70's They are great, the timers/counters have hardware interrupts, when they are activated (like a timers/counters flag been set) , it sends the Micro off to FFFx and FFFx+1 (I can not remember the c

Thread view Attachments: 0

Re: [AVR-Chat] Interrupts

2005-01-29 by Leon Heller

----- Original Message ----- From: Eric To: AVR-Chat@yahoogroups.com Sent: Saturday, January 29, 2005 6:37 PM Subject: [AVR-Chat] Interrupts I first learnt about microprocessors on the Motorola 6800 family back in the mid 70's They are great, the timers/counters have hardware int

Thread view Attachments: 0

Re: [AVR-Chat] Can someone double check my assumptions ATMega128 PWM

2005-01-29 by Brian Dean

Just FYI, I've implemented your function in one of my MAVRIC-II boards and verified the PWM signals from PORTE3 and PORTE4 on my scope. They work as I think you expect. OCR3x = 0 gives a 0% duty, OCR3x = 1023 gives 100% duty, and 0 To: > From: "wbounce" > Date: Fri, 28 Jan 2005 2

Thread view Attachments: 0

Re: Big data memory

2005-01-29 by assault_wolf

OK, one thing everyone seems to be doing is assuming you need to actually keep the data in case of a power bump. I'm going the opposite direction: Try dual port SRAM or FIFO. Cypress ( http://www.cypress.com/ ) makes a large number of Dual port SRAMS and FIFOs. They're actually o

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-29 by Zack Widup

On Sat, 29 Jan 2005, Dave VanHorn wrote: > > > > > > PS: How did you go with your Ham License ? > > > >You know, put on the back burner :( > > > Grrrr....!! :) > Ham radio and AVR's seem to go well together. I think most of my AVR projects have been ham radio related. So when you

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-29 by Dave VanHorn

> > > PS: How did you go with your Ham License ? > >You know, put on the back burner :( Grrrr....!! :)

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-29 by Kathy Quinlan

Matthew Cook wrote: > At 04:09 29/01/2005, Kat wrote: > >>Does anyone have a good link for setting up CVS,I have a few FreeBSD >>servers so the bulk of the install is done, just need to config and work >>out a winblows interface so I can check the files in and out :) > > > I'll s

Thread view Attachments: 0

Query about @Web PSTN board

2005-01-29 by fusion_netz

Sir, We have purchased @Web PSTN board of Atmel.There is Demo program already there on board We have some queries about the Demo program as follows. 1.We want to know how the demo program is working. 2.When there is phone call made to the @Web PSTN board,the board makes a phone c

Thread view Attachments: 0

Re: [AVR-Chat] CVS

2005-01-29 by Matthew Cook

At 04:09 29/01/2005, Kat wrote: >Does anyone have a good link for setting up CVS,I have a few FreeBSD >servers so the bulk of the install is done, just need to config and work >out a winblows interface so I can check the files in and out :) I'll second the WinCVS path (www.wincvs

Thread view Attachments: 0

RE: [AVR-Chat] Can someone double check my assumptions ATMega128 PWM

2005-01-29 by wbounce

No and I would not know how to work with it anyhow. I will be going to my club's meeting in 2 weeks and one of the guys there may have one. >From what I see I do not think I am getting any pulse on the left side and I am seeing some but not as much as I would expect on the right.

Thread view Attachments: 0

Re: [AVR-Chat] Can someone double check my assumptions ATMega128 PWM

2005-01-29 by Brian Dean

On Fri, Jan 28, 2005 at 06:54:31PM -0500, wbounce wrote: > void initmotor(void) > { > OCR3A = 0; > OCR3B = 0; > > TCCR3A = BV(WGM31) | BV(WGM30) ; /* set timer/counter 3 to fast PWM mode > 7 */ > TCCR3A |= BV(COM3A1) | BV(COM3B1); /* Clear OCnA/OCnB/OCnC on compare > match when u

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.