nobcha23の日記

PICマイコンやArduinoを使う電子回路遊びを紹介します

Deadroch against for changing 88 to 1827 PIC16F1827への移植難航 

LC meter operated by PIC16F88 had worked almost well. I converted PIC chips to PIC16F1827 as latest 18 pin models.
Howevver she does not work at most. There are some different Special function registers between old chips and 16F1827. I checked those on the data sheets and rewrite the programs. Bug fixed for several compile errors. Nevertheless the franklin oscillator would not be active.

ANSEL->ANSELA,ANSELB、OPTION→OPTION_REG,CMCON->CMnCON0,CMnCON2


フランクリン発振方式のLCメータ基板試作の実験を進めています。648A->88移行が旨く行ったので、PIC16F88よりも新しいCPUを採用検討します。新4桁シリーズの中から、ピン互換品PIC16F1827を選んで入れ替えを行います。まずはコンパイラを通しなおします。主にはCMC0CONとCMC1CNコマンドが違うところなどです。気の付いたところを書き直しコンパイルかけますが、さっぱり動作しません。何が悪いんでしょうか。