Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5206 matches
www.mcselec.com Forum Index
Author Message
  Topic: LCD connections
albertsm

Replies: 4
Views: 2911

PostForum: BASCOM-8051 Archive   Posted: Sun Jul 18, 2004 11:53 pm   Subject: LCD connections
Set the pin to 0, and use LCDINIT command to re-init the display.
  Topic: Programming with a LCD
albertsm

Replies: 5
Views: 2528

PostForum: BASCOM-AVR Archive   Posted: Fri Jul 02, 2004 8:42 pm   Subject: Programming with a LCD
Using the dedicated lcd driver will result in smaller code size.
The default driver is for worst case scenario when you can use pins from different ports !!!
The dedicated driver uses fixed pins wh ...
  Topic: Hardware SPI
albertsm

Replies: 3
Views: 2058

PostForum: BASCOM-AVR Archive   Posted: Fri Jul 02, 2004 8:40 pm   Subject: Hardware SPI
When you use NOSS option, you must make a CS/SS pin low/hight yourself.
  Topic: Programming with a LCD
albertsm

Replies: 5
Views: 2528

PostForum: BASCOM-AVR Archive   Posted: Wed Jun 30, 2004 10:26 pm   Subject: Programming with a LCD
Hi,

You can use 2 LCD displays :

'using 2 lcd's
$regfile = "4433def.dat"
Config Lcd = 40 * 2

Dim ___lcdno As Byte
Config Lcdpin = Pin , Db4 = Portb.5 , Db5 = Portb.4 , Db6 = Portc.4 , Db7 ...
  Topic: Hardware SPI
albertsm

Replies: 3
Views: 2058

PostForum: BASCOM-AVR Archive   Posted: Wed Jun 30, 2004 10:23 pm   Subject: Hardware SPI
You need to use SPIINIT, and of course you need to select the right SPI mode.
  Topic: Q for INPUT Command
albertsm

Replies: 4
Views: 1906

PostForum: BASCOM-AVR Archive   Posted: Wed Jun 30, 2004 10:22 pm   Subject: Q for INPUT Command
While you could get the number, where would you store it?
As you can not use a LONG, what good is it , to have the 48 bits?
the best option would be to change the lib code in mcs.lib so 48 bits are ...
  Topic: 1wire & interrupts
albertsm

Replies: 1
Views: 1356

PostForum: BASCOM-AVR Archive   Posted: Wed Jun 30, 2004 10:20 pm   Subject: 1wire & interrupts
Yes, as the 1wire does not use system resources like a timer, it means the timing is created by a software loop. This loop may not be interrupted.
So there are 2 options :
- modify the 1 wire code ...
  Topic: ATtiny26L....problems
albertsm

Replies: 11
Views: 3987

PostForum: BASCOM-AVR Archive   Posted: Fri Jun 25, 2004 11:57 am   Subject: ATtiny26L....problems
It is important that you use the proper crystal. Tiny26 has an internal osc. So when you use 4 MH xtal, make sure the chip runs on this xtal.
Always try to measure this :
$crystal=4000000
config po ...
  Topic: 2313 with pwm, 1wire and WAITMS
albertsm

Replies: 2
Views: 1705

PostForum: BASCOM-AVR Archive   Posted: Fri Jun 25, 2004 11:53 am   Subject: 2313 with pwm, 1wire and WAITMS
HI,

To answer the Q : the 1wire does not use the TIMER.
In general, all statements/functions that use internal hadware(UART, TIMER) mention this in the help.
  Topic: 90S2343 with IR input.
albertsm

Replies: 5
Views: 2034

PostForum: BASCOM-AVR Archive   Posted: Fri Jun 25, 2004 11:51 am   Subject: 90S2343 with IR input.
Hi,

You need to remove PRINT statements as the 2343 has no UART.

Here is the modified code :

'-------------------------------------------------------------------
' RC5 ...
  Topic: PWM with the 2313
albertsm

Replies: 2
Views: 1745

PostForum: BASCOM-AVR Archive   Posted: Mon Jun 21, 2004 11:41 pm   Subject: PWM with the 2313
$regfile = "2313def.dat"
$crystal = 4000000
Config Timer1 = Pwm , Prescale = 1024 , Compare A Pwm = Clear Down , Pwm = 8

Pwm1a = 0
Do
Waitms 100
Pwm1a = Pwm1a + 10
Loop
  Topic: Bug in subroutine call?
albertsm

Replies: 1
Views: 1291

PostForum: BASCOM-AVR Archive   Posted: Mon Jun 21, 2004 11:40 pm   Subject: Bug in subroutine call?
Hi,

You need to increase the Software stack and frame space in the Options, Compiler.
  Topic: problems talking to SPI ROM (at25256)
albertsm

Replies: 5
Views: 2013

PostForum: BASCOM-AVR Archive   Posted: Mon Jun 21, 2004 11:39 pm   Subject: problems talking to SPI ROM (at25256)
You need to use the NOSS option of CONFIG SPI.
Then you need to use a custom pin for the CS.
All SPI statements will reset CS and SET it after the commands is completed. But as you need to spiin/sp ...
  Topic: eeprom memory variables for 89s8252
albertsm

Replies: 1
Views: 1681

PostForum: BASCOM-8051 Archive   Posted: Mon Jun 21, 2004 11:28 pm   Subject: eeprom memory variables for 89s8252
Hi,

No you can not use EEPROM as a normal var.
The EEPROM can be written to 100000 times. This seems much but it a loop, it is done soon. Then the EEPROM will not work reliable anymore.
I advis ...
  Topic: ADC question
albertsm

Replies: 7
Views: 3867

PostForum: BASCOM-AVR Archive   Posted: Sat Jun 19, 2004 11:06 pm   Subject: ADC question
Reading twice is only needed for the older non-mega chips.
Most new chips do not have the error and only need 1 conversion.
But to be safe and compatible, you can do 2 readings as is the default in ...
 
Page 346 of 348 Goto page Previous  1, 2, 3 ... 345, 346, 347, 348  Next
All times are GMT + 1 Hour
Jump to: