Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 324 matches
www.mcselec.com Forum Index
Author Message
  Topic: Absolute paths in PRJ project file
mattcro

Replies: 2
Views: 242

PostForum: BASCOM-AVR   Posted: Mon Sep 30, 2019 9:40 am   Subject: Absolute paths in PRJ project file
Nice! Thanks.

(and yes, I'll send requests like this to MCS support in future).
  Topic: Absolute paths in PRJ project file
mattcro

Replies: 2
Views: 242

PostForum: BASCOM-AVR   Posted: Mon Sep 16, 2019 5:00 pm   Subject: Absolute paths in PRJ project file
I've been using Bascom for years, and on recent projects I'm using Git for tracking changes. My repository includes the PRJ file, even though most of the changes in this are not worth tracking (IDE st ...
  Topic: Custom ICs
mattcro

Replies: 5
Views: 978

PostForum: Robotics   Posted: Mon Jul 11, 2011 7:53 am   Subject: Custom ICs
If the components you're thinking of can be soldered by hand, then a good addition to this project would be to design your own circuit board layout and fabricate a few boards yourself. It's very likel ...
  Topic: Stepping motor and SPI interface
mattcro

Replies: 4
Views: 588

PostForum: BASCOM-AVR Archive   Posted: Thu Jun 23, 2011 9:03 pm   Subject: Stepping motor and SPI interface
Read the Bascom help for CONFIG SPI and SPIOUT. You must define and control a CS pin yourself if you use SS=NONE in CONFIG SPI.

The CS pin on the driver MUST be driven from a pin on the AVR - easie ...
  Topic: Interrupts, Help!
mattcro

Replies: 12
Views: 1439

PostForum: BASCOM-AVR Archive   Posted: Wed Jun 08, 2011 8:02 pm   Subject: Interrupts, Help!
To clear the interrupt flag (best to do it just before returning from the interrupt handler), just use something like:Set EIFR.INTF0

It might be better to use a timer interrupt to clock the stepper ...
  Topic: Disabling HW-UART with not using $baud (solved)
mattcro

Replies: 13
Views: 1115

PostForum: BASCOM-AVR Archive   Posted: Mon May 30, 2011 8:10 pm   Subject: Disabling HW-UART with not using $baud (solved)
If you don't specify $baud in your code, the compiler uses whatever is set in the compiler options (Options>Compiler>Communication). If you have a silly value set here (like "1") then the compil ...
  Topic: Change in PRINT in 2.0.6.0?
mattcro

Replies: 3
Views: 657

PostForum: BASCOM-AVR Archive   Posted: Sun May 29, 2011 3:31 pm   Subject: Change in PRINT in 2.0.6.0?
This change in behaviour may be due to a bug fix related to strings:

History.txt for 2.0.6.0
- using {034} and quotes gave a problem when they were unbalanced.

The correct way to print multiple ...
  Topic: single data type sending through serial port
mattcro

Replies: 10
Views: 944

PostForum: BASCOM-AVR Archive   Posted: Sat May 28, 2011 4:54 pm   Subject: single data type sending through serial port
You could also try PRINTBIN and INPUTBIN. I haven't tried this but guess it should work.
  Topic: Problem with interupt function
mattcro

Replies: 3
Views: 520

PostForum: BASCOM-AVR Archive   Posted: Fri May 20, 2011 7:01 pm   Subject: Problem with interupt function
Don't do the Print statement inside the interrupt handler - it normally takes a relatively long time and will probably mess up the pulse counting at faster rotation speeds. Encoders like this can prod ...
  Topic: Problem with interupt function
mattcro

Replies: 3
Views: 520

PostForum: BASCOM-AVR Archive   Posted: Tue May 17, 2011 7:56 pm   Subject: Problem with interupt function
The newer or larger AVRs like m644 have several interrupt control registers for the various peripherals (timers, UARTs...)

What interrupt are you having a problem with?

The GIFR = 64 code would ...
  Topic: Cannot get Basocm to Install on Win7 64 Bit
mattcro

Replies: 3
Views: 479

PostForum: BASCOM-AVR Archive   Posted: Tue May 17, 2011 7:50 pm   Subject: Cannot get Basocm to Install on Win7 64 Bit
I installed Bascom 2.0.4.0 a couple of months ago on my new work Win7 x64 laptop with no problems, and have since updated it to 2.0.5.0. I think I did exactly the same as you have, so can't see why it ...
  Topic: Problems with {034} inside strings in Print statements
mattcro

Replies: 10
Views: 1016

PostForum: BASCOM-AVR Archive   Posted: Tue May 17, 2011 7:38 pm   Subject: Problems with {034} inside strings in Print statements
Ok Mark. I was going to write a support email but it looks like you are already working on this. Smile

Yes, it looks like the {xxx} gets converted to the corresponding byte value too early in the comp ...
  Topic: Problems with {034} inside strings in Print statements
mattcro

Replies: 10
Views: 1016

PostForum: BASCOM-AVR Archive   Posted: Mon May 16, 2011 8:59 pm   Subject: Problems with {034} inside strings in Print statements
It looks like the parser/compiler gets confused, and treats some of the {034} as delimiter quote marks instead of part of the literal string. Some more tests:
print "this is {034}quote ...
  Topic: Problems with {034} inside strings in Print statements
mattcro

Replies: 10
Views: 1016

PostForum: BASCOM-AVR Archive   Posted: Mon May 16, 2011 5:06 pm   Subject: Problems with {034} inside strings in Print statements
I'm trying to use the {034} trick in string constants to insert quotation marks in AT commands, but the strings are not correctly compiled. For example:
Dim Gprs_apn As String * 30
Gprs_apn = " ...
  Topic: BASCOM AVR 2.04.0 + Windows 7 + AVRISP mkII
mattcro

Replies: 2
Views: 551

PostForum: BASCOM-AVR Archive   Posted: Thu Mar 31, 2011 8:37 pm   Subject: BASCOM AVR 2.04.0 + Windows 7 + AVRISP mkII
I use Bascom 2.0.4.0 and Atmel AVRISP mkII under Win7 64bit, but I only use the AVRISP from AVR Studio. I've never tried it from within Bascom because I mostly do bootloading or batch programming from ...
 
Page 1 of 22 Goto page 1, 2, 3 ... 20, 21, 22  Next
All times are GMT + 1 Hour
Jump to: