Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 56 matches
www.mcselec.com Forum Index
Author Message
  Topic: Simulating UART Coommands and CRLF
autoguider

Replies: 5
Views: 567

PostForum: BASCOM-AVR   Posted: Mon Sep 11, 2017 12:28 pm   Subject: Simulating UART Coommands and CRLF
Dear All,
I want to filter information out of a RS232 datastream.
The information that I will receive starts with "F" and finishes with CRLF. Lenth of the received string to be received varies.

I ...
  Topic: coupling 2 atmega via RS 232 or SPI ?
autoguider

Replies: 4
Views: 698

PostForum: BASCOM-AVR Archive   Posted: Wed Aug 13, 2014 8:28 pm   Subject: coupling 2 atmega via RS 232 or SPI ?
Dear Ian, Dear Mark,
many thanks for your advice.
After looking at the pors and cons I think that I will go with the Ic interface.
The interface consumes 2 pis only and is pretty fast.
So far I h ...
  Topic: coupling 2 atmega via RS 232 or SPI ?
autoguider

Replies: 4
Views: 698

PostForum: BASCOM-AVR Archive   Posted: Sun Aug 10, 2014 4:07 pm   Subject: coupling 2 atmega via RS 232 or SPI ?
Dear All,
I am kindly asking for your advice how I may proceed.

I programmed a ATMega328 ( = CPU A) to control the movement of a stepper motor ( basically creating signals e.g. stepper-clock, dire ...
  Topic: Simulator Frame or software stack overlap ?
autoguider

Replies: 2
Views: 159

PostForum: BASCOM-AVR Archive   Posted: Fri May 30, 2014 1:34 pm   Subject: Simulator Frame or software stack overlap ?
Dear all,
I am evaluating some code because the device I want to control sometimes behaves inpredictable.
In the simulation runnig sometime the message Frame or software stack overlap occurs.
I cha ...
  Topic: ATMega 168 Fast PWM with Timer 2
autoguider

Replies: 4
Views: 519

PostForum: BASCOM-AVR Archive   Posted: Thu May 01, 2014 5:20 pm   Subject: ATMega 168 Fast PWM with Timer 2
Dear dave,
now it works.

This is my short program for testing.

dim j as integer


Config PORTC.3 = Output ' For Buzzer
Config Portb.3 = Output ' Output OC2A


TCCR2A= &B100000 ...
  Topic: ATMega 168 Fast PWM with Timer 2
autoguider

Replies: 4
Views: 519

PostForum: BASCOM-AVR Archive   Posted: Thu May 01, 2014 4:37 pm   Subject: ATMega 168 Fast PWM with Timer 2
Hi Dave,

many thanks for the useful advice.

I changed the registers now to:

TCCR2A= &B10000011 ' Fast PWM, 1 0 Clear OC2A on Compare Match, set OC2A at BOTTOM
...
  Topic: ATMega 168 Fast PWM with Timer 2
autoguider

Replies: 4
Views: 519

PostForum: BASCOM-AVR Archive   Posted: Thu May 01, 2014 1:36 pm   Subject: ATMega 168 Fast PWM with Timer 2
Dear All,
I cannot explain why my circuit does not work.
I want to use Timer 2 to generate a refernce voltage to control the dutycycle of a stepper motor.
The C is PDIP casing. OC2A is on pin 17 ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 22, 2014 11:04 pm   Subject: Wait execution takes too long- Clock Source ?
Dear Ian,

Thank you very much
In a former version of the program I needed INT1.
The directive enable INT1 is not necessary any more. I remove this remnant.

If I am correct then Pin 15 ( PCINT ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 22, 2014 9:20 am   Subject: Wait execution takes too long- Clock Source ?
Dear All,
after further digging in the forum I followed a posting and removed the nosave directive at the declaration of the timer.
I did not change anything.
All WAIT commands are executed much lo ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Sun Apr 20, 2014 7:30 pm   Subject: Wait execution takes too long- Clock Source ?
Dear Albert,

I think I am coming closer to the solution.
It seems that there is a conflict with INT1.
I am using INT 1 to generate a signal to start a measurement of temperature every 5 minutes. ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Thu Apr 17, 2014 6:27 pm   Subject: Wait execution takes too long- Clock Source ?
Dear Paul,
I followed your advice and checked the clock output signal with an oscilloscope.
Result: The unit runs at 6 MHz. I got a wonderful powerful sinus wave with appr. 7V peak to peak.

So it ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Wed Apr 16, 2014 11:37 pm   Subject: Wait execution takes too long- Clock Source ?
Dear Kim, Dear Albert,
many thanks for answering my posting.

@ Kim
Iam using a Diamex DX ISP USB programmer. It runs with the STK500 protocol.
Transfer of data and also of fusebit settings runs ...
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 350

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 15, 2014 1:26 pm   Subject: Wait execution takes too long- Clock Source ?
Dear All,
I am running a ATMEGA 168 20 PU with a crystal rated at 6 MHz.

Crytstral is connected via 2 capacitors 22pf each to GND and the other direction goes to the XTAL1 and XTAL2 pins of the CP ...
  Topic: Powertip PC1602F B running 4Bit Mode Bascom ?
autoguider

Replies: 3
Views: 140

PostForum: BASCOM-AVR Archive   Posted: Tue Apr 15, 2014 10:57 am   Subject: Powertip PC1602F B running 4Bit Mode Bascom ?
Dear all,
I changed to the lcd4busy_anypin.lbx library.
So I invested 1 additional pin at the cpu.

Most Important is to set the WR-pin to 0 before executing the initlcd procedure !


This is ...
  Topic: Powertip PC1602F B running 4Bit Mode Bascom ?
autoguider

Replies: 3
Views: 140

PostForum: BASCOM-AVR Archive   Posted: Mon Mar 24, 2014 12:38 am   Subject: Powertip PC1602F B running 4Bit Mode Bascom ?
Daer Kim,
many thanks for your advice.
I tried your code.
I found out that the lcdinit is essential.
If I do not use it there is nothing displayed.
Whre I leave it the then I get the correct text ...
 
Page 3 of 4 Goto page Previous  1, 2, 3, 4  Next
All times are GMT + 1 Hour
Jump to: