Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5144 matches
www.mcselec.com Forum Index
Author Message
  Topic: Hardware SPI
albertsm

Replies: 3
Views: 2057

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

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

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

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

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

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

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

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 ...
  Topic: BASCOM - TIMERFUNKTION UND SIMULATOR?
albertsm

Replies: 1
Views: 1319

PostForum: BASCOM-AVR Archive   Posted: Sat Jun 19, 2004 11:04 pm   Subject: BASCOM - TIMERFUNKTION UND SIMULATOR?
As the timer is configured to work in COUNTER mode, you need to apply a pulse or make sure you generate the interrupt.
You can always verify with AVR Studio when you create an OBJ file
  Topic: problems talking to SPI ROM (at25256)
albertsm

Replies: 5
Views: 2013

PostForum: BASCOM-AVR Archive   Posted: Sat Jun 19, 2004 11:00 pm   Subject: problems talking to SPI ROM (at25256)
You forgot the SPIINIT after the config statement.
 
Page 342 of 343 Goto page Previous  1, 2, 3 ... , 341, 342, 343  Next
All times are GMT + 1 Hour
Jump to: