View previous topic :: View next topic |
Author |
Message |
id31
Joined: 19 Dec 2014 Posts: 16
|
Specific code |
Posted: Sun Apr 02, 2017 2:27 am |
|
|
Hi all,
Is there a document that show the full code of
Spi write
Spi read
Write eeprom
Read eeprom
? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19529
|
|
Posted: Sun Apr 02, 2017 5:36 am |
|
|
Compile the functions.
Look at the .lst file.
Shows the assembler used for the functions.
There is not actually a 1:1 answer, since the code will vary, according to what eeprom hardware the chip has, and which spi port is being used, (and if using spi_xfer, how many bytes are being sent, and whether hardware/software spi is being used). |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9232 Location: Greensville,Ontario
|
|
Posted: Sun Apr 02, 2017 6:27 am |
|
|
Mr. T is 100% correct ! CCS does not 'hide' anything. As he said , cut code/compile/ dump listing. It's ALL there for you to see.
Jay |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19529
|
|
Posted: Sun Apr 02, 2017 6:48 am |
|
|
By default they do hide some stuff....
Not 'to be awkward', but so the listing is only of _your_ code, to simplify debugging. So core functions like the maths are not shown, unless you remark out the #NOLIST line at the start of the processor include file.
However do this, and set the project options to generate symbolic listings, and you even get the registers 'named' for you.
The functions though are much more complex than you may expect. They are almost invariably massively 'overloaded', so several different versions depending on a whole variety of parameters. Only the one that applies to your source, will be included in the final code. |
|
|
|