Search found 97 matches

by SILVESTROS9
Sat Apr 13, 2019 9:34 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

I tried with an external comparator LM 393 with IOC for output pin, , and works fine....many thanks for help...
by SILVESTROS9
Mon Apr 08, 2019 9:33 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

thanks QMESAR , I know that , but I have no free inputs....I 'll try with ext. comparator (LM339 or LM393).
by SILVESTROS9
Mon Apr 08, 2019 3:23 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

good idea ...I'll test it....what if Imax must be total current IL + IH ? that's a puzzle because we need calculation therefore extra time....
by SILVESTROS9
Mon Apr 08, 2019 12:23 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

unfortunately , I have no free pins in PIC , only E.2 (ADC7) and B.5 (ADC2) ....using a small code with ADC, then when Imax set a pin to 1 , and then use the IOC for that pin, that works some times, but because the main code has many time delays , I can't have permanent monitor of current...i think ...
by SILVESTROS9
Sun Apr 07, 2019 11:45 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

Re: INTERRUPT FOR PIC 16F1937

thanks medelec35...I was think that , but with the desired limit of 20A resistors must be 0.25ohm/5w, large enough,with heat dissipation ...I prefer to use 3 resistors 0.03ohm/1w in parallel (smd), so for 20A I have to handle 0.2V ...there are some problems ..i need some additional circuits to isola...
by SILVESTROS9
Sun Apr 07, 2019 6:27 pm
Forum: Flowcode V7
Topic: INTERRUPT FOR PIC 16F1937
Replies: 9
Views: 257

INTERRUPT FOR PIC 16F1937

Hello to all ! I would like to monitor the total current on 2 resistors (schematic) in a project with FC7..I use ADC2 and ADC7 to measure the current with VL, VH..When Itot exceeds a imax then the flowcode will call a macro ( LOAD_OVERCURRENT1), to set off some inputs and write a warning message on ...
by SILVESTROS9
Fri Jan 25, 2019 10:45 am
Forum: Flowcode V7
Topic: VARIABLES IN FC7
Replies: 9
Views: 549

Re: VARIABLES IN FC7

Martin, many thanks for your help....yes, according to T6963 data sheet must be read the status of pin STAO, STA1 before each instruction , data or command...PORTB works as I/O between mcu and glcd....I'll make some changes and try again....in your opinion how can I test if the glcd is initialized c...
by SILVESTROS9
Thu Jan 24, 2019 11:20 am
Forum: Flowcode V7
Topic: VARIABLES IN FC7
Replies: 9
Views: 549

Re: VARIABLES IN FC7

I send you the FC7 that I've made so far..also the code that I try to convert , and some info for glcd controller T6963C....the code after a cycle stops at status sub. i think the problem is maybe at set portB as input/output....my goal is to send a text to a glcd 240x128 with T6963C controller..I'v...
by SILVESTROS9
Thu Jan 24, 2019 12:19 am
Forum: Flowcode V7
Topic: VARIABLES IN FC7
Replies: 9
Views: 549

Re: VARIABLES IN FC7

Martin , I would like to thank you, for the info... another problem with following subroutine that I try to convert to FC7. 1. busy_chk: 2. glcd_ce = 1 3. glcd_tris= %11111111 4. glcd_cd = 1 5. glcd_wr = 1 5 glcd_ce = 0 6. glcd_rd = 0 7. pauseus GL_PAUSE 8. if (glcd_sta0 <> 1) AND (glcd_sta1 <> 1) t...
by SILVESTROS9
Tue Jan 22, 2019 8:31 pm
Forum: Flowcode V7
Topic: VARIABLES IN FC7
Replies: 9
Views: 549

VARIABLES IN FC7

Hello to all ! I would like to use the following subroutine (in picbasicpro) in a FC7 code... 1. for gl_y= $1027 to $1528 step $28 2. gl_ad1= gl_y.BYTE1 3. gl_ad2= gl_y.BYTE0 4. gl_k= %11000001 5. num_1 =1 6. num_2 =1 7. gosub ln1 8. next about lines 2,3, gl_y. BYTE1 is 8bit msb , gl_y.BYTE0 is 8bit...
by SILVESTROS9
Mon Jan 21, 2019 2:52 pm
Forum: 8-Bit PIC
Topic: LOOP COMMANDS AT FC7
Replies: 2
Views: 253

Re: LOOP COMMANDS AT FC7

dear Ben, thanks for your answer... for gl_i = 1 to 240 ' Clear Graphic Screen for gl_j = 1 to 64 glcd_msb = $00 'Clear byte glcd_cmd = DATA_WR_INC 'Command gosub send_1 'Send glcd_msb followed by glcd_cmd next next 'Do it 240x64 times the above part of PBP is a loop ...the conversion to FC7 is at l...
by SILVESTROS9
Sun Jan 20, 2019 10:23 pm
Forum: 8-Bit PIC
Topic: LOOP COMMANDS AT FC7
Replies: 2
Views: 253

LOOP COMMANDS AT FC7

I try to convert a code in PICBASICPRO to FC7 code. it is a demo code to write some characters to a GLCD 240X128 with T6963 controller. I have some problems in conversion ...in some part of code must set a port of PIC16F1939 ( PORTB) as inputs to read status of some bits of GLCD.. after that must se...
by SILVESTROS9
Thu Nov 15, 2018 6:12 pm
Forum: General Programming
Topic: 8051 ASSEMBLY TRANSLATION
Replies: 0
Views: 388

8051 ASSEMBLY TRANSLATION

Hello to all !! I try to convert an .asm code to to a language that I can handle...I have no knowledge about assembly , so if someone has any idea on how to convert that code to any other language than assembly, like C, or PICBASIC, it will hepl me ...I would like to convert the code to FC7 or FC8 t...
by SILVESTROS9
Mon Oct 29, 2018 10:23 pm
Forum: 8-Bit PIC
Topic: GLCD NOT WORK
Replies: 34
Views: 3780

Re: GLCD NOT WORK

Hello to all ! I continue to find some way to drive a GLCD ...so I asked for some manufacturers to send me some info about that LCD.... one of them , send me a code in assembly for a GLCD 240x128 with T6963C controller....I would like to convert that in C , and then to FC8 to test if that works and ...
by SILVESTROS9
Mon Oct 01, 2018 2:58 pm
Forum: 8-Bit PIC
Topic: PIC16F887 DELAY TIME
Replies: 3
Views: 507

Re: PIC16F887 DELAY TIME

many thanks medelec35 and Benj for info...I use Microchip PICkit-2 to load the code to pic mcu, so I import .EXE to that programmer.Until now I have not problems for delay timing..I need relative accurate delays in the area 5-100μs. Is anything else that I can do to impove the accuracy? Instead of d...
by SILVESTROS9
Thu Sep 27, 2018 3:33 pm
Forum: 8-Bit PIC
Topic: PIC16F887 DELAY TIME
Replies: 3
Views: 507

PIC16F887 DELAY TIME

Hello to all! I made some tests with PIC16F887, to get some delays that I need for a code..I make a simple code to check the duration accuracy of delays...I note that for a delay 80μs at FC7 code the scope shows 100μs and for delay 5μs the scope shows 20μs....Is there something wrong with FC7 code c...
by SILVESTROS9
Sun Aug 26, 2018 4:20 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, sorry for delay, but i've some problems with internet connection. About bluetooth modules , my supplier not give me info about modules, the 2 modules HC-05 and HC-06 that he was give me to test, is the same as hardware. if there is data sheet for both , or diagram to understand the d...
by SILVESTROS9
Sun Jul 29, 2018 8:07 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, I think that my BT module is HC-06, but not work, I don't know why...maybe there is a mistake to hardware but what? is there a way to test it? would you like to inform me for your connections in your hardware and with what flowchart the HC-06 works? is there some photo of your module...
by SILVESTROS9
Sat Jul 28, 2018 12:22 am
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, I would like to thank you for your efforts...yes I have an oscilloscope (Rigol DS-1054), also LCD 4x20...I made some changes to lcd component and I connect LCD ...i get the info as below...about BT module, it seems that my module is HC-05....I have no module with 4 pin...Ι get some m...
by SILVESTROS9
Fri Jul 27, 2018 5:31 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, many thanks for help....about BT , I set Disabled MCLR Pin Function Select..I was checked wiring again...BT module has 6 pins (photo)...I was connected 4 pins and pin EN as LOW/HIGH to switching data/at command mode...pin STATE I don't know what it is....I made a new test, no results...
by SILVESTROS9
Fri Jul 27, 2018 2:58 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, thanks for your help...about connections BT with mcu, I think that there is no need to use a resistor to pool HIGH MCLR pin of PIC16F1939...I connect 4 pins to BT as it shows at schematic....pin EN is data/at command according to HC-06 details for connection....for command mode I set...
by SILVESTROS9
Thu Jul 26, 2018 3:31 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, many thanks for your help...about HC-06 working, I send you the updated flowchart for PIC16F1939...The flasher test is ok, but nothing works for HC-06.....no change name , no change pairing code....I have no problem to change the mcu , just I used that to make a working test for HC-0...
by SILVESTROS9
Wed Jul 25, 2018 10:48 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, thanks again for your help...about device is an electronic world clock that needs update perodically...what is wrong with data transfer? You said that that the code that you send me works at your HC-06...why not work for me? it's about different programming of my module? is there a w...
by SILVESTROS9
Wed Jul 25, 2018 7:50 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, many thanks for your help...I send you circuit diagram....about HC-06 red led flashes quickly 3-4 times/sec...it seems that there is no change from AT command to DATA mode, because there is no communication between mcu and BT module...about Android the problem is that the program run...
by SILVESTROS9
Wed Jul 25, 2018 5:21 pm
Forum: 8-Bit PIC
Topic: BLUETOOTH MODULE NOT WORK
Replies: 22
Views: 2098

Re: BLUETOOTH MODULE NOT WORK

Dear medelec35, thank you for info..I used the code in your previous post but I've a message "unable to pair"when I set the new code...there is a detail about program that send rtc info to my device....my device accepts only rtc info from that program, maybe the info is coded....I can't us...