Search found 190 matches
- Wed Sep 13, 2017 1:09 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
Hi, As promised, I have made the circuit diagram/schematic of the real circuit that I have used on breadboard tests. To emulate as close as possible the real breadboard, I have use Fritzing (http://fritzing.org/home/ ), because is free and another program as Virtual Breadboard (http://www.virtualbre...
- Tue Sep 12, 2017 1:19 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
I was thinking at the PICs. Can you tell me what Revision ID have your PIC16F1937? I checked the Silicone Errata, but on MSSP block seem only SPI affected: http://ww1.microchip.com/downloads/en/DeviceDoc/80000479M.pdf My PIC16F1937 chips are new chips with ID Revision 9, checked with MPLABX+Pickit 3...
- Mon Sep 11, 2017 5:18 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
Here are my thoughts for today: - If we use the same .fcfx code and works for you, but not for me, then is a hardware problem. - I do not have any EB006 boards, but looking on internet I noticed are different versions. What version are yours? - The resistors 4.7K or 3.3K should have influence only o...
- Mon Sep 11, 2017 3:16 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
What hardware do you use? Can I see a photo with it? Can you make some oscilloscope screenshots with the I2C transactions as I have posted above? Did you really use my .fcfx file above or did you modify a bit the code? Could you please upload here the exactly .fcfx files that works for you? I will t...
- Mon Sep 11, 2017 10:37 am
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
Here is the non-working code used in the above tests:
- Mon Sep 11, 2017 10:25 am
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
Hi, I have received some PIC16F1937 chips and I made a test today. 1st error: the frequency was not set properly in the Project Options in the provided examples and no OSCCON in C block included in the code. I decided for internal oscillator at 16MHz, and then the OSCCON must be initialized. I did i...
- Thu Sep 07, 2017 3:03 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
I just ordered some 16F1937.
I will test those examples with real devices during the next days and I will let you know the results.
I will test those examples with real devices during the next days and I will let you know the results.
- Thu Sep 07, 2017 9:01 am
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
One error detected in the Wiki Examples files:
https://www.matrixtsl.com/wikiv7/index. ... 3e364f2eff
At "Slave Switches Example" in the above link there is Atmega set instead of PIC16F1937:
https://www.matrixtsl.com/wikiv7/index. ... 3e364f2eff
At "Slave Switches Example" in the above link there is Atmega set instead of PIC16F1937:
- Fri Aug 25, 2017 9:54 am
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
Re: PIC to PIC over I2C – Default Examples
So I understand that no one up to now tested the provided examples with PIC16F1937 from next Flowcode Wiki page: https://www.matrixtsl.com/wikiv7/index.php?title=Component:_ID_eac43fda_0bc5_4b08_881c_6d3e364f2eff I do not have PIC16F1937, but I found some PIC18F4550 around and I decided to adapt the...
- Thu Aug 24, 2017 8:32 am
- Forum: General Programming
- Topic: An Introduction to Real PIC Simulator
- Replies: 14
- Views: 17535
Re: An Introduction to Real PIC Simulator
raf, you know why you have to buy a new car? Because your “smart car” is small and you cannot drive it on long way/run no matter how many times you fill up the tank and you just notice has not too many options that you might need and the guys from garage cannot upgrade it for you. I think is a fair ...
- Wed Aug 23, 2017 8:47 am
- Forum: General Programming
- Topic: An Introduction to Real PIC Simulator
- Replies: 14
- Views: 17535
Re: An Introduction to Real PIC Simulator
Maybe is good to know about another simulator, with more PICs, also acceptable as price:
http://www.oshonsoft.com/licenses.php?type=pers
http://www.oshonsoft.com/licenses.php?type=pers
- Tue Aug 22, 2017 3:27 pm
- Forum: General Programming
- Topic: PIC to PIC over I2C – Default Examples
- Replies: 27
- Views: 24390
PIC to PIC over I2C – Default Examples
I was looking at next example: http://www.matrixtsl.com/mmforums/viewtopic.php?f=7&t=7081&p=17145&hilit=I2C+slave#p17145 but is old and then I noticed next I2C Slave help examples: https://www.matrixtsl.com/wikiv7/index.php?title=Component:_ID_eac43fda_0bc5_4b08_881c_6d3e364f2eff I took the 1st case...
- Wed Jul 26, 2017 10:58 pm
- Forum: Programming Tips & Tricks
- Topic: Sine & Cosine Calculator
- Replies: 10
- Views: 18158
Re: Sine & Cosine Calculator
Actually even for 16bit PICs as PIC24, using fixed point math to generate the sine is a very good approach. It is faster than LUT and elegant with less memory size in case we want some thousands of samples per period of sine/cosine. I have used Taylor series polynomial approximation of 3rd and 5th o...
- Wed Jul 26, 2017 10:28 pm
- Forum: Poll Discussion
- Topic: What additional targets should Flowcode support?
- Replies: 15
- Views: 16651
Re: What additional targets should Flowcode support?
Hi Benj,
For example next:
dsPIC33EP128GS702
dsPIC33EP64GS502
dsPIC33EP32GS502
dsPIC33EP16GS502
I am interested in the internal DAC usage from these chips.
For example next:
dsPIC33EP128GS702
dsPIC33EP64GS502
dsPIC33EP32GS502
dsPIC33EP16GS502
I am interested in the internal DAC usage from these chips.
- Tue Jul 25, 2017 10:33 am
- Forum: Poll Discussion
- Topic: Do you make use of Ghost features?
- Replies: 7
- Views: 14116
Re: Do you make use of Ghost features?
I agree with QMESAR comments above. I use also MPLABX with their compilers for simulator and/or debugging with debugging heads, but sometimes I use also CCS compiler and their IDE environment lets you debug with breakpoints and real time variables, SFR with no matter what board and PIC as long as is...
- Tue Jul 25, 2017 10:26 am
- Forum: Poll Discussion
- Topic: What additional targets should Flowcode support?
- Replies: 15
- Views: 16651
Re: What additional targets should Flowcode support?
The new families of PIC24 and dsPIC33 produced lately by Microchip and are supported by their XC compilers, especially those with integrated DAC.
- Tue Jul 25, 2017 8:27 am
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
The problem is solved. Everything works fine. Thank you for your help.
Was the first set of parameters:
Was the first set of parameters:
Location: "C:\Program Files (x86)\PICC\ccsload.exe"
Parameters: +T$(target).hex
- Tue Jul 25, 2017 8:22 am
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
OK, I managed that by adding in front " $(platform) " as described here:
https://www.matrixtsl.com/wikiv7/index. ... er_Options
but I still get an error.
https://www.matrixtsl.com/wikiv7/index. ... er_Options
but I still get an error.
- Tue Jul 25, 2017 8:08 am
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
Hi,
How can we add "PIC" in front of chip name?, because now is seen only as 24HJ64GP202 instead of PIC24HJ64GP202.
FC7 parameters sends info to the programmer as "24HJ64GP202" and it seems that ccsload.exe needs PIC24HJ64GP202.
How can we add "PIC" in front of chip name?, because now is seen only as 24HJ64GP202 instead of PIC24HJ64GP202.
FC7 parameters sends info to the programmer as "24HJ64GP202" and it seems that ccsload.exe needs PIC24HJ64GP202.
- Sun Jul 23, 2017 9:59 am
- Forum: Poll Discussion
- Topic: What improvements would you like to see?
- Replies: 16
- Views: 16392
Re: What improvements would you like to see?
This is my dream: - To have the „Panacea library component“ as discussed here: https://www.matrixtsl.com/mmforums/viewtopic.php?f=7&t=18334 - A simpler way how to create user components. - Simplify the way how ASM is included as discussed here at bottom: https://www.matrixtsl.com/mmforums/viewtopic....
- Sun Jul 23, 2017 9:45 am
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
In the folder where CCS Load is installed, there is a help file “ccsload.chm” and inside there is one page with references to “Command Line Usage”
Here it is:
Here it is:
- Sat Jul 22, 2017 7:01 pm
- Forum: General Programming
- Topic: User Produced Components
- Replies: 2
- Views: 5389
- Fri Jul 21, 2017 8:58 pm
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
The technical support from CCS just told me next:
An example command line:
"c:\program files\picc\ccsload.exe" +Tyourfile.hex
- Fri Jul 21, 2017 11:44 am
- Forum: General Programming
- Topic: Third party programmers
- Replies: 10
- Views: 9739
Re: Third party programmers
The page that you pointed to above seems for Compiler Options and I asked about Programmer.
I think you meant the 1st link from my post about third party programmers.
Or?
I think you meant the 1st link from my post about third party programmers.
Or?
- Thu Jul 20, 2017 3:33 pm
- Forum: General Programming
- Topic: PIC24 and DAC SPI MCP4921
- Replies: 0
- Views: 8008
PIC24 and DAC SPI MCP4921
This is a sharing example with some questions about optimization. I have implemented successful the code using CCS C compiler: CCS code Sin3x.txt Then I decided to translate it for Flowcode 7: PIC24HJ64GP202_sine_ASM_S3x_v1.fcfx PIC24HJ64GP202_sine_ASM_S3x_v2.fcfx The code uses SPI Master and not SP...