Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 1398 matches
www.mcselec.com Forum Index
Author Message
  Topic: Change the UART2 Configs in M128
DToolan

Replies: 5
Views: 1838

PostForum: BASCOM-AVR Archive   Posted: Tue Jan 04, 2005 4:39 am   Subject: Change the UART2 Configs in M128
trend,

I use a variation of the above for 9-bit "multiprocessor communication" (which isn't directly supported under a Bascom config). Read up on MPC mode in the Atmel documentation for use and se ...
  Topic: connect two uC with the hardware UART
DToolan

Replies: 1
Views: 739

PostForum: BASCOM-AVR Archive   Posted: Thu Dec 30, 2004 11:38 pm   Subject: connect two uC with the hardware UART
kavakopoulos,

While you have assigned Packet(1) the value of 65 (decimal), the PRINT Packet(x) command is sending four seperate characters...

54 (decimal) is an ASCII 6
53 (decimal) is an ASCII ...
  Topic: Change the UART2 Configs in M128
DToolan

Replies: 5
Views: 1838

PostForum: BASCOM-AVR Archive   Posted: Thu Dec 30, 2004 7:55 pm   Subject: Change the UART2 Configs in M128
Pedro,

I personally had troubles configuring and manipulating the second uart (USART1) with Bascom. I eventually moved to configuring and manipulating both uarts (USART0 & USART1) manually.
...
  Topic: Simple serial MUX, Will Bascom-AVR work?
DToolan

Replies: 4
Views: 1455

PostForum: BASCOM-AVR Archive   Posted: Fri Dec 24, 2004 1:07 am   Subject: Simple serial MUX, Will Bascom-AVR work?
Paul,

I don't know which AVR you plan to use. At this point, perhaps you don't either. I also don't know your thoughts as to a ball park expenditure for your project.

Many projects are cheaply ...
  Topic: pulse and ADC
DToolan

Replies: 2
Views: 825

PostForum: BASCOM-AVR Archive   Posted: Wed Nov 24, 2004 5:37 am   Subject: pulse and ADC
This isn't so much an answer to your question as just some timing information. For my own purposes, I had timed the GETADC statement (ATMega128 @ 14.75 MHz).

"X = GETADC(n)" took roughly 347us to ...
  Topic: amount of CLK cycles for modifying TIMER0 (8bit)
DToolan

Replies: 4
Views: 922

PostForum: BASCOM-AVR Archive   Posted: Sun Nov 07, 2004 6:33 pm   Subject: amount of CLK cycles for modifying TIMER0 (8bit)
Edgar,

Timer0 is a ram location just like your TMP variable. The only difference between the two is that Timer0 has a predetermined (fixed / permanent) memory location residing at hex address & ...
  Topic: bidirectional RS232
DToolan

Replies: 3
Views: 965

PostForum: BASCOM-AVR Archive   Posted: Wed Nov 03, 2004 5:17 pm   Subject: bidirectional RS232
Werner,

Yes, AVR's are capable of transmitting RS232 while at the same time receiving RS232 (full duplex operation). They have seperate and independent transmit and receive registers.
  Topic: Temporarily disabling HW UART
DToolan

Replies: 3
Views: 1249

PostForum: BASCOM-AVR Archive   Posted: Tue Nov 02, 2004 9:11 pm   Subject: Temporarily disabling HW UART
Ken,

I am going to assume that the two M128's are connected via TTL levels and then I'll assume you have one of your 8 external interrupt pins available. For the sake of discussion, I'll pretend I ...
  Topic: Can I omit this Bit variable?
DToolan

Replies: 4
Views: 1290

PostForum: BASCOM-AVR Archive   Posted: Sat Oct 30, 2004 6:56 pm   Subject: Can I omit this Bit variable?
I see a couple of things in your code that might be simplified. That's actually kind of funny since it's only a dozen lines long. Smile

Anyway, I see that your Int0_isr does two things:
1. It ch ...
  Topic: Bascom & AVR Studio & JTAG ICE
DToolan

Replies: 2
Views: 930

PostForum: BASCOM-AVR Archive   Posted: Mon Oct 25, 2004 10:31 pm   Subject: Bascom & AVR Studio & JTAG ICE
Can anyone tell me if it is possible to include bascom libraries (.lib) or other bas (.bas)? How? The problem is when the program jumps to code which is contained in another file (.bas or .lib), I ca ...
  Topic: Debouncing reed_input
DToolan

Replies: 3
Views: 1138

PostForum: BASCOM-AVR Archive   Posted: Wed Oct 20, 2004 7:11 pm   Subject: Debouncing reed_input
Edgar,

When you "Disable Int1", you aren't actually disabling the interrupt. What that does is disable a flag in an internal AVR register that means "allow servicing this particular interrupt when ...
  Topic: SW UART with interrupt
DToolan

Replies: 1
Views: 1067

PostForum: BASCOM-AVR Archive   Posted: Fri Sep 17, 2004 2:52 pm   Subject: SW UART with interrupt
You can use an interrupt pin (ie. INT0) as the RX receive pin. On INT0 (the start bit going low) you can vector to your interrupt service routine and recieve your character.
  Topic: RS232, hard or soft?
DToolan

Replies: 5
Views: 2605

PostForum: BASCOM-AVR Archive   Posted: Wed Sep 15, 2004 4:35 pm   Subject: RS232, hard or soft?
Personally, I would make a buffer and receive the characters and perform the checksum calculation in the background via ISR.

This routine isn't all inclusive but gives you another idea of how it co ...
  Topic: mega 128 timer0
DToolan

Replies: 2
Views: 1425

PostForum: BASCOM-AVR Archive   Posted: Thu Sep 09, 2004 5:04 pm   Subject: mega 128 timer0
I believe you would have to use:

ON OC0 thenameofyourinterruptserviceroutinethatdoessomething

and to write to the output compare register use:

OCR0 = somethingthatfitsinabyte
  Topic: Timer 1 config problem
DToolan

Replies: 1
Views: 1278

PostForum: BASCOM-AVR Archive   Posted: Thu Aug 26, 2004 6:49 pm   Subject: Timer 1 config problem
There are a couple problems with this but let's touch on the error messages first.

The first error says, "Value does not fit in byte[500]". That's right.... a byte is only 8 bits long. The maximu ...
 
Page 93 of 94 Goto page Previous  1, 2, 3 ... , 92, 93, 94  Next
All times are GMT + 1 Hour
Jump to: