Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 61 matches
www.mcselec.com Forum Index
Author Message
  Topic: Wait execution takes too long- Clock Source ?
autoguider

Replies: 10
Views: 351

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: 351

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: 351

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: 141

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: 141

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 ...
  Topic: Powertip PC1602F B running 4Bit Mode Bascom ?
autoguider

Replies: 3
Views: 141

PostForum: BASCOM-AVR Archive   Posted: Sun Mar 23, 2014 8:52 pm   Subject: Powertip PC1602F B running 4Bit Mode Bascom ?
Dear All,
I am trying to get now my 2nd Powertip PC1602F B Display operating in 4 Bit mode on a AVR 168 Mega@ 6 MHz ( Fuse Bits are checked)
Sometimes I get some correct data displayed. But then the ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Sat Nov 23, 2013 12:31 am   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear Albert,
many thaks for your efforts and recommendations.
Here is a link to the datasheet of the display: http://www.datasheetarchive.com/PC1602-F-datasheet.html

So far I have not tried an ot ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Fri Nov 22, 2013 2:58 pm   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear Alberet,
here is the source text:


'$PROG &HFF,&HF7,&HDF,&HFF' generated. Take care that the chip supports all fuse bytes.


$lib "mcs.lbx"
$regfile = "m168def.dat" ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Thu Nov 21, 2013 8:24 pm   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear Albert,

sorry about the lack of information.
Here it comes:
It is the default lib
wr is connected to ground
There is a 6 MHz crystal in operation. No division of the external clock.

be ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Sun Nov 17, 2013 8:42 pm   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear All,
many thanks for your advice.

In the meantime I got the LCD working in 4 bit mode.
I found some behaviour of the display which is strange to me.

If there is a wait command after data ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Thu Oct 31, 2013 8:50 pm   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear Ian, Dear Albert.
many thanks for your advice.
I will do some testing now.

While reading your advice a further question arises:
Do I habe to config e.g. PORTB.0 = Output before I do the co ...
  Topic: Running LCD Display 4 Bit Mode Libraries ? Init ?
autoguider

Replies: 13
Views: 461

PostForum: BASCOM-AVR Archive   Posted: Thu Oct 31, 2013 12:37 am   Subject: Running LCD Display 4 Bit Mode Libraries ? Init ?
Dear All,
I am asking for your advice to get the LCD Display operating.

The PowertipPC 1602 F Display is not operating on a ATMeaga 168 P in 4 Biut Mode.
I am using the 2.0.7.6 version of the Bas ...
  Topic: No display of memory window in Simulator
autoguider

Replies: 2
Views: 127

PostForum: BASCOM-AVR Archive   Posted: Mon Mar 19, 2012 8:42 pm   Subject: No display of memory window in Simulator
Dear All,
I am trying to debug a program for a ATMEGA 168P.

I cannot get the memory window visible.
I/O window, register window are displayed.

Bascom is 2.0.7.4
On my computer I am runnig Win ...
  Topic: Atmel 168PU PWM2 problems
autoguider

Replies: 3
Views: 278

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 22, 2010 11:09 pm   Subject: Timer2 PWM
Dear Hubert,
many thanks for your useful advice. It is a major step ahead.
I changed the regfile to your recommendation also.
Now the TCCR2A and TCCR2B registers reflect some changes of the PWM par ...
  Topic: Atmel 168PU PWM2 problems
autoguider

Replies: 3
Views: 278

PostForum: BASCOM-AVR Archive   Posted: Wed Dec 22, 2010 11:16 am   Subject: Atmel 168PU PWM2 problems
Dear colleagues,
I am using Bascom 2.0.1.0 to program a 168PU CPU.
The used reg- file is "m168pdef.dat".
As the CPU has to fit into an existing board I have to use Pin 17 on the 28PDIP chip. Tis is ...
 
Page 4 of 5 Goto page Previous  1, 2, 3, 4, 5  Next
All times are GMT + 1 Hour
Jump to: