Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 911 matches
www.mcselec.com Forum Index
Author Message
  Topic: Lookup() - number of CPU cycles to execute seems high at 40
EDC

Replies: 27
Views: 1289

PostForum: BASCOM-AVR   Posted: Mon Feb 19, 2024 3:56 pm   Subject: Lookup() - number of CPU cycles to execute seems high at 40
This is how it can be measured. Simply insert into your code the "nop" instruction before you want to measure something. Then run Simulator and "Run to this place" then zeros the counter by double cli ...
  Topic: Lookup() - number of CPU cycles to execute seems high at 40
EDC

Replies: 27
Views: 1289

PostForum: BASCOM-AVR   Posted: Mon Feb 19, 2024 3:31 pm   Subject: Lookup() - number of CPU cycles to execute seems high at 40
In the simple words: take the first of your Sineh data &H82 and then join it with the first Sinel data &HD3 so it becomes a &H82D3%
The procent sign describe it as two byte variable.
Do ...
  Topic: dim and include declaration in a include file
EDC

Replies: 7
Views: 597

PostForum: BASCOM-AVR   Posted: Sun Feb 11, 2024 10:03 am   Subject: dim and include declaration in a include file
You can simply fold the code by inserting it into valid condition.

Const Region = 1

#If Region ' <--- this can easly be folded
Line 1
'bunch of code here
.
.
.
Line 2 ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Sun Feb 04, 2024 3:30 pm   Subject: Adafruit MAX31865 is not sending data
Please take a one step back.
If you have proper SPI config then try it first.
Set address to Config_write &H80 and write it with config value.
Then set address to Config_read &H00 and read ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Tue Jan 30, 2024 10:18 pm   Subject: Adafruit MAX31865 is not sending data
I joined to this topic little late and when I saw that, after many replies, problem persist then I maybe dont read them all carefully enough Wink

I know that niuanses about SS Input/Output but dont w ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Tue Jan 30, 2024 8:55 pm   Subject: Adafruit MAX31865 is not sending data
Now we find the cause.... Very Happy
For SPI to be in MASTER MODE its SS pin MUST be configured as OUTPUT nomather what because if this pin is set low externally then uC will switch SPI back into SLAVE MODE. ...
  Topic: Passing Data from the bootloader to the main program
EDC

Replies: 6
Views: 579

PostForum: BASCOM-AVR   Posted: Tue Jan 30, 2024 8:56 am   Subject: Passing Data from the bootloader to the main program
Yes. All declared variables are set to zero.
If you dont want this behavior then you can use command $noramclear ->see help.
In C language every new declared variable must be initialise with some ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Sun Jan 28, 2024 9:35 pm   Subject: Adafruit MAX31865 is not sending data
I think MCU power on reset is not the case here.
We talking about MAX PoR.

You can read showed registers and print them.
Like is shown in the picture addresses from&H00 to &H02 should hav ...
  Topic: RC5 transmitting as a background process
EDC

Replies: 15
Views: 1656

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Jan 26, 2024 11:02 am   Subject: RC5 transmitting as a background process
This is a bug in my programm only Very Happy
It was made for the "normal" AVR and needs some tweaks for the Xmegas.
Work on that is in my shedule but priority is low Very Happy ahahahahaha

As you can see adding ...
  Topic: RC5 transmitting as a background process
EDC

Replies: 15
Views: 1656

PostForum: Share your working BASCOM-AVR code here   Posted: Fri Jan 26, 2024 8:39 am   Subject: RC5 transmitting as a background process
Hello Per Svensson.
One of the Bascom output files is *.OBJ file.
This can be loaded into Microchip Studio and you can watch and count used regs. There is a manual wroted by MWS for that.
Long tim ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Mon Jan 15, 2024 6:44 pm   Subject: Adafruit MAX31865 is not sending data
Zeros sometimes is like no pullup lines
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Thu Jan 11, 2024 8:39 pm   Subject: Adafruit MAX31865 is not sending data
I dont have such a module. Why dont you read two registers at once. Datasheet says that addresses will be incremented autoamtically.
There is more interesting things. This is a resistance data, alway ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Sun Jan 07, 2024 8:21 pm   Subject: Adafruit MAX31865 is not sending data
You have only one config register so maybe creating a sub for "Write_reg" like mine is not worth it. Simply send something like this:


Max_32865_config_register = &B11100011 ' I dont check i ...
  Topic: Adafruit MAX31865 is not sending data
EDC

Replies: 34
Views: 4914

PostForum: BASCOM-AVR   Posted: Sat Jan 06, 2024 10:29 pm   Subject: Adafruit MAX31865 is not sending data
Maybe you can adapt some code from MAX31856?

https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14653&highlight=max31856

$regfile = "m328pdef.dat ...
  Topic: Wait problem
EDC

Replies: 11
Views: 1151

PostForum: BASCOM-AVR   Posted: Tue Jan 02, 2024 4:34 pm   Subject: Wait problem
Tiny85 family can be clocked from internall fast pheriperial clock where is 64MHz so it can even handle USB communication (DigiSpark for example) which needs atleast 12MHz without any externall crysta ...
 
Page 2 of 61 Goto page Previous  1, 2, 3, ... 59, 60, 61  Next
All times are GMT + 1 Hour
Jump to: