Search found 20 matches

by allenkkwong
Fri Sep 24, 2021 12:41 pm
Forum: Flowcode V8
Topic: PIC16F1936 I2C
Replies: 6
Views: 3531

Re: PIC16F1936 I2C

Hi Benj

The watchdog has been there and there is no problem. For some reason I need to use the I2C and the problem happen. I am quite sure that it is related to the I2C macro. Once I started the I2C marco, it is getting unstable and kind of weird behaviour of IOs.

Thanks
by allenkkwong
Wed Sep 15, 2021 3:31 pm
Forum: Flowcode V8
Topic: PIC16F1936 I2C
Replies: 6
Views: 3531

Re: PIC16F1936 I2C

Hi Benj,

Any update?

Thanks
by allenkkwong
Wed Sep 08, 2021 2:51 pm
Forum: Flowcode V8
Topic: PIC16F1936 I2C
Replies: 6
Views: 3531

Re: PIC16F1936 I2C

Hi Benj,

Pls find the attached. I have simplified the FC by deleting the timer interrupt and some key scan.

Thanks!

Allen
by allenkkwong
Wed Sep 08, 2021 9:50 am
Forum: Flowcode V8
Topic: PIC16F1936 I2C
Replies: 6
Views: 3531

Re: PIC16F1936 I2C

Hello, I changed to use software I2C and use Port A to drive the I2C bus. It works. Therefore, it seems that the macro that uses hardware I2C might have glitch.
by allenkkwong
Wed Sep 08, 2021 3:19 am
Forum: Flowcode V8
Topic: PIC16F1936 I2C
Replies: 6
Views: 3531

PIC16F1936 I2C

Hello, I have a project that uses PIC16F1936 I2C. Once I initialize the I2C module, the MCU is getting unstable and other pins will accidentally change states. Can you let me know what is the likely problems I have?
by allenkkwong
Wed Dec 30, 2020 5:25 pm
Forum: Flowcode V8
Topic: PIC16F1936 Pull Up
Replies: 2
Views: 1500

Re: PIC16F1936 Pull Up

Thank you medelec35.

Yes, it works. Appreciate your advice. :)

Rgds
by allenkkwong
Wed Dec 30, 2020 11:42 am
Forum: Flowcode V8
Topic: PIC16F1936 Pull Up
Replies: 2
Views: 1500

PIC16F1936 Pull Up

Hello Benj,

I am configuring the PIC16F936 and want to enable the Pull up in port B. However, I have tried both of below and the compiler fails to compile. Can you advise how to deal with it?

cr_bit(OPTION_REG, WPUEN);
or
OPTION_REGbits.WPUEN = 0;

Thank you.
Allen
by allenkkwong
Sat Sep 12, 2020 6:08 pm
Forum: Flowcode V8
Topic: PIC32MX450
Replies: 4
Views: 2206

Re: PIC32MX450

Thanks Benj!!! It works now.
by allenkkwong
Fri Sep 11, 2020 7:44 am
Forum: Flowcode V8
Topic: PIC32MX450
Replies: 4
Views: 2206

Re: PIC32MX450

Thanks Benj. Now it works for U3RX with the way you recommended. However, if I use the same method to remap the U4RX, it does not work. I want to set RPD5 as U4RX (0110) but RPD5 does not show up.

Thanks
Allen
by allenkkwong
Wed Sep 09, 2020 4:18 pm
Forum: Flowcode V8
Topic: PIC32MX450
Replies: 4
Views: 2206

PIC32MX450

I am new using PIC32MX450 and I try to remap the Uart 3 RX to RPG0. Per page 142 of the datasheet, I can use RPG0 (by setting 1100 to RPn for Pin Selection bits). But in FC, I do not see such as option. I do not prefer to use software UART.

Can you tell me if I did something wrong? :D

Rgds
Allen
by allenkkwong
Tue Jul 18, 2017 1:46 am
Forum: Flowcode V6
Topic: IIC and SSPCON2
Replies: 3
Views: 4657

Re: IIC and SSPCON2

Hi Benj,

Oh... I got it. Pls ignore my last reply. Thanks

Rgds
Allen
by allenkkwong
Tue Jul 18, 2017 1:40 am
Forum: Flowcode V6
Topic: IIC and SSPCON2
Replies: 3
Views: 4657

Re: IIC and SSPCON2

Hi Benj,

Will there be a fix? I am using v6 and will you have update on v6?

Rgds
by allenkkwong
Sun Jul 16, 2017 11:52 am
Forum: Flowcode V6
Topic: IIC and SSPCON2
Replies: 3
Views: 4657

IIC and SSPCON2

Hi Benj, I am using the PIC16F723 in a project. I use the hardware IIC. When I compiled the FC, it generates a lot of SSPCON2 error. I searched the forum and found that it happens in FC V5. I am currently using FC V6. I have attached the error message in this post. I changed to use software IIC and ...
by allenkkwong
Sun Jul 16, 2017 11:44 am
Forum: Flowcode V6
Topic: Using LCD component
Replies: 4
Views: 5227

Re: Using LCD component

Hi Matt,

Sorry for my late response as I was not in forum for quite some time. Yes. It is just contrast.

Thanks again.

Rgds
by allenkkwong
Sat Jun 24, 2017 2:58 pm
Forum: Flowcode V6
Topic: Using LCD component
Replies: 4
Views: 5227

Re: Using LCD component

Hi Matt,

Great ! It works. It is not off topic. Your advice is awesome. I tweak the voltage and it does work immediately. The contrast voltage is so sensitive.

Thanks again for your help ! It works in a minute after I follow your advice.

Rgds,
Allen
by allenkkwong
Sat Jun 24, 2017 12:22 pm
Forum: Flowcode V6
Topic: Using LCD component
Replies: 4
Views: 5227

Using LCD component

Hi Benj, I am using the LCD component (EB005, 2x16) macro in my FC. I can simulate the result successful. I then built the hardware with DMC16249UB which uses the same Hitachi HD44780 as EB005. Unfortunately, I can see nothing on the LCD module. Can you let me know if I have to purchase the EB005 or...
by allenkkwong
Mon May 29, 2017 4:41 am
Forum: General Programming
Topic: C Code in PIC
Replies: 5
Views: 5850

Re: C Code in PIC

Hi Benj,

Thanks and it works.

Rgds
by allenkkwong
Tue Apr 25, 2017 10:46 am
Forum: General Programming
Topic: C Code in PIC
Replies: 5
Views: 5850

Re: C Code in PIC

Hi Benj,

I am using PIC18F67J111 and want to use the internal pull resistor.

I do not need high current and understand that the current is less than 20mA which is far more than required.

Thanks
by allenkkwong
Tue Apr 25, 2017 9:41 am
Forum: General Programming
Topic: C Code in PIC
Replies: 5
Views: 5850

Re: C Code in PIC

Hi Benj,

I am using PIC18F67J111. I want to simply pull high using the internal pull up resistors.

For the current, I understand this. I do not need high current.

Thanks.
by allenkkwong
Mon Apr 24, 2017 4:12 am
Forum: General Programming
Topic: C Code in PIC
Replies: 5
Views: 5850

C Code in PIC

Hi Benj,

I am new to FC6. Recently I have also upgraded to FC7. I put below C code in the main() intended to set the port pulled high internally.
LATG |= 0xc0;

However, after compilation and tested the hardware, the port is not pulled high. Can you tell if I made any mistakes?

Thanks a lot
Allen