Search found 49 matches
- 09 Jul 2018 18:37
- Forum: mikroBasic PRO for PIC32 General
- Topic: TFT for PIC32MZ
- Replies: 2
- Views: 1634
Re: TFT for PIC32MZ
Thanks Filip, With MZ, all I could do is make the led Blinking work. Then modify it. If I build a project from scratch the compiler give an error at line 0. Now, if I take the working Led Blinking project and add the TFT code that works for PIC32MX, TFT initialization is taken as an identifier. The ...
- 02 Jul 2018 12:37
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
Thanks again, I get errors for all UART things:
50 303 Identifier "UART1_Init" was not declared
50 303 Identifier "UART1_Init" was not declared
- 02 Jul 2018 00:02
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
UART_init(9600) is not recognized with PIC32MZ It is my actual opinion that no library for PIC32MX will work with MZ. I will make tables of values pre-calculated using Const . With Pure Basic, it is easy to make tables and save them as text to be read by NotePad. Then copy and paste to the PIC32 bas...
- 01 Jul 2018 19:47
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
I have the same board! I guess you have a cable plugged into a USB port. And then.... What PC program reads the data? <---- This is what I don't know! For the raw data, I am trying something: On the PC, I load the raw data into a PureBasic program then, I will format a file with all data : w[12345]=...
- 01 Jul 2018 18:59
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
It is of great use...if I can understand all. I see you are using UART. I guess you have a cable from the board to the PC. Then what? What is receiving the USB data? I am a stranger to all that. I wish I could do so. You are rather inspiring than of no use! (Many thanks!) A question: It would be nic...
- 01 Jul 2018 17:19
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
Are you using this device? P32MZ2048EFH144 (I do) If so, is it like me? About nothing works, I guess ME has not yet implemented libraries for it. So, I appreciate the very fast Floating Point and use only pins for all. I use the leds as debugging "screen". I will do my own software for serial commun...
- 01 Jul 2018 16:33
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
dim xf, x1f, x2f, x3f, x4f, x5f as float fim xflong as longword if xf>6.283185306 then xf=xf/6.283185306 xflong=xf xf=xf-xflong end if sub function sin(dim xf as float)as float x1f=xf*xf*xf x2f=x1f*xf*xf x3f=x2f*xf*xf x4f=x3f*xf*xf x5f=x4f*xf*xf result=xf-(x1f/6)+(x2f/120)- (x3f/5040)+ (x4f/362880)-...
- 01 Jul 2018 14:09
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Re: Sine function [ sin() ] is unknown with PIC32MZ
Thanks, hexreader,
sin(af) , af being a float
It is what I used for PIC32MX, but with PIC32MZ, the compiler say that this is an undeclared identifier.
I will try to use the serial expansion of a sine.
sin(af) , af being a float
It is what I used for PIC32MX, but with PIC32MZ, the compiler say that this is an undeclared identifier.
I will try to use the serial expansion of a sine.
- 01 Jul 2018 13:11
- Forum: mikroBasic PRO for PIC32 General
- Topic: Sine function [ sin() ] is unknown with PIC32MZ
- Replies: 17
- Views: 5336
Sine function [ sin() ] is unknown with PIC32MZ
Sin() is not recognized by the compiler. How should I get the sine of a value?
- 30 Jun 2018 20:40
- Forum: mikroBasic PRO for PIC32 General
- Topic: Fast PWM with PIC32MZ
- Replies: 3
- Views: 1922
Re: Fast PWM with PIC32MZ
Thanks, Filip, Nice to have a program working! I have explored PWM. The setting of Duty Cycle seems a slow function. I can get a ramp at about 20Hz. If I compare to this code TRISB=0 k=0 While (TRUE) for j=1 to 100-k next j LATB.1=1 k=k+1 if k=100 then k=1 end if For j=1 to k Next j LATB.1=0 wend Th...
- 28 Jun 2018 19:22
- Forum: mikroBasic PRO for PIC32 General
- Topic: TFT for PIC32MZ
- Replies: 2
- Views: 1634
TFT for PIC32MZ
The TFT code for PIC32MX is not accepted by the compiler for PIC32MZ.
Does it takes a special TFT library for MZ?
Thanks
Does it takes a special TFT library for MZ?
Thanks
- 28 Jun 2018 13:27
- Forum: mikroBasic PRO for PIC32 General
- Topic: Very first try at PIC32MZ2048EFH144, please Help!
- Replies: 3
- Views: 1964
Re: Very first try at PIC32MZ2048EFH144, please Help!
OK, I have a project called Led Blinking working. I can modify it to do something else. If I save it under another project name, while changing all references to LedBinking I still get this "Unresolved extern : 0 360 Unresolved extern 'hidInit0' __Lib_USB_MZ_HS.c 0 360 Unresolved extern 'configDescr...
- 27 Jun 2018 21:25
- Forum: mikroBasic PRO for PIC32 General
- Topic: Very first try at PIC32MZ2048EFH144, please Help!
- Replies: 3
- Views: 1964
Re: Very first try at PIC32MZ2048EFH144, please Help!
Thanks Marko for trying to help me. This morning, I had a fresh start. I removed all ME stuff on my PC. I had my PC cleaned etc... Then I downloaded again the compiler and programmer. I loaded the Led Blinking program and changed the MCU in the project edit section as well as the code to make all pi...
- 26 Jun 2018 01:27
- Forum: mikroBasic PRO for PIC32 General
- Topic: Very first try at PIC32MZ2048EFH144, please Help!
- Replies: 3
- Views: 1964
Very first try at PIC32MZ2048EFH144, please Help!
I have a new EasyPIC Fusion v7 board I have also a new MCU module with 32MZ2048EFH144 (I also have a PIC32MX460F512L) The original led blinking program already installed in the new PIC32MZ is working as it should. If I make a program, no matter what it is, it is compiled but not transferred to the b...
- 22 Jun 2018 20:48
- Forum: mikroBasic PRO for PIC32 General
- Topic: Fast PWM with PIC32MZ
- Replies: 3
- Views: 1922
Fast PWM with PIC32MZ
After a blew out, I ordered a new EasyPIC fusion v7 With the high clock frequency, I hope to get dome rather high resolution . I wish I can find the few lines of code for a PWM set up to fully test PWM to replace a DAC. Is there someone who has done this? For instance, just define a sine wave (16 bi...