Sonsivri

Electronics => Pic C Languages => Topic started by: metal on September 09, 2020, 11:03:52 23:03



Title: PIC12F1612 ZCD IN Proteus
Post by: metal on September 09, 2020, 11:03:52 23:03
Anybody succeeded simulating this in Proteus?


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: Flash50 on September 12, 2020, 03:23:18 15:23
I have just tried, yes it is working in Proteus release8.10 sp3.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: metal on September 12, 2020, 08:22:47 20:22
No it is not.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: Ahmad_k on September 13, 2020, 07:12:46 07:12
I have just tried, yes it is working in Proteus release8.10 sp3.

Saying just a yes is not a proof, share your test code, because it is really not working.

No it is not.

Maybe he didn't notice ZCD, he just tried the PIC itself


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: Flash50 on September 13, 2020, 08:33:46 08:33
Maybe he didn't notice ZCD, he just tried the PIC itself

Sorry. I didn't notice ZCD.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: pickit2 on September 13, 2020, 09:16:18 09:16
My thoughts are as the model don't need patching, it's a Labcenter issue.

https://www.microchip.com/design-centers/8-bit/peripherals/intelligent-analog/zero-cross-detect


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: metal on September 13, 2020, 09:32:30 09:32
Ahmad_k found that ZCDxCON value is not changing in Proteus.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: HackAndCrack on September 13, 2020, 11:25:32 11:25
CM1CON0 and if needed CM2CON0 and ANSELx registers have to be configured as required to disable analog and comparator functions on ZCD pins. Maybe other features on those pins might also needs to be disabled.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: metal on September 13, 2020, 11:41:54 11:41
Here is a quick project + Proteus.


Title: Re: PIC12F1612 ZCD IN Proteus
Post by: Ahmad_k on September 13, 2020, 12:12:49 12:12
CM1CON0 and if needed CM2CON0 and ANSELx registers have to be configured as required to disable analog and comparator functions on ZCD pins. Maybe other features on those pins might also needs to be disabled.

The pin used for ZCD must be configured as analog input.

The problem with PROTEUS is that ZCD1CON keeps its value to 0