Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 5238 matches
www.mcselec.com Forum Index
Author Message
  Topic: interrupts and branching
albertsm

Replies: 3
Views: 1787

PostForum: BASCOM-AVR Archive   Posted: Sun Jul 18, 2004 11:57 pm   Subject: interrupts and branching
When a statement is interrupted, the ISR will be executed, and the previous executing code will continue.
Make sure you have enough HW stack (40)
  Topic: Graphic LCD Support 128 * 128
albertsm

Replies: 6
Views: 3692

PostForum: BASCOM-8051 Archive   Posted: Sun Jul 18, 2004 11:55 pm   Subject: Graphic LCD Support 128 * 128
As 240*128 is supported, all the smaller size will work too.
So 128*128 is not a problem.
  Topic: LCD connections
albertsm

Replies: 4
Views: 2916

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

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

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

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

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

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

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

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

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 ...
 
Page 348 of 350 Goto page Previous  1, 2, 3 ... 347, 348, 349, 350  Next
All times are GMT + 1 Hour
Jump to: