s12zvca19 ADC and EEPROM Illegal Accesses?

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

s12zvca19 ADC and EEPROM Illegal Accesses?

ソリューションへジャンプ
425件の閲覧回数
s_kim1
Contributor III

Hello,
I am a developer developing with s12zvca19.

I would like to create a function that reads values into ADC with s12zvca and stores them in EEPROM.

But the datasheet 4.4.2 Illegal Accesses part worries me.

Screenshot_29.png


What I want to store in EEPROM is not the ADC value.
I want to store the InputCapture value.

For example, when the ADC value is 100, I want to save the Duty value to EEPROM as InputCapture.

Datasheet 4.4.2 Wouldn't that be a problem with Illegal Accesses?

If that's a problem, I'm thinking of an external EEPROM.

Answers I'll wait.

Best Regards, s_kim1

0 件の賞賛
1 解決策
421件の閲覧回数
kef2
Senior Contributor IV

Hi

 

You shouldn't worry about illegal accesses.

Write access from CPU to EEPROM can't normally take place. EEPROM isn't writable directly. EEPROM is programmable using special procedures, which do write- and read- access EEPROM module registers but not write- accessing EEPROM memory directly. EEPROM module registers are in "Register space", which as you see is OK.

The same applies to ADC module. As you should know already, ADC module has kind of DMA. If you let ADC write to EEPROM memory directly you will get illegal access.

 

Regards

元の投稿で解決策を見る

0 件の賞賛
1 返信
422件の閲覧回数
kef2
Senior Contributor IV

Hi

 

You shouldn't worry about illegal accesses.

Write access from CPU to EEPROM can't normally take place. EEPROM isn't writable directly. EEPROM is programmable using special procedures, which do write- and read- access EEPROM module registers but not write- accessing EEPROM memory directly. EEPROM module registers are in "Register space", which as you see is OK.

The same applies to ADC module. As you should know already, ADC module has kind of DMA. If you let ADC write to EEPROM memory directly you will get illegal access.

 

Regards

0 件の賞賛