Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Microcontrollers (MCU)

Microcontrollers (MCU) Application and programming of MCUs, Evaluation Kits and Demonstration Boards, Programmers.

Thread Tools Search this Thread
Old 05-01-2017, 04:37 PM   #1
Junior Member
Join Date: Jan 2016
Posts: 3
benny7440 is on a distinguished road
Default 32-bit microcontroller and 40-bit values

Hi, I'm using a 32-bit microcontroller (PIC32MZ) and device pairing with me send me a 40-bit value on the SPI in a series of 5 bytes. How can I use the 40-bit value, for example, to perform arithmetic operations such as multiply or divide it with another 40-bit value? thanks in advance
benny7440 is offline   Reply With Quote
Old 05-08-2017, 12:02 PM   #2
Join Date: Nov 2013
Posts: 53
hemilton is on a distinguished road

Use 64 bit variables? Shift the bits into 64bit variables and then do the math with them.
hemilton is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does my LM386 chip act a bit too lively and what should I do? April155 Beginners 0 04-05-2017 10:02 AM
Bin-ASCII Converter values Jon Microcontrollers (MCU) 1 12-07-2013 05:20 PM

All times are GMT. The time now is 09:00 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus