Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

transforming 8051 to pic

Status
Not open for further replies.
Always I rather use real parts / development system board / breadboard.

For sure this can work in Proteus you need to adjust simulator.

Try to use lower supply voltage at 3,6V because PIC18K46K20 support up to 3,6V.


Real parts save time and give results. Simulators are good if simulation design is tested and checked, in other cases can lead to erroneous conclusions, what is often case.
 
I've tried GLCD with SPI in proteus, programmed in MikroC pro, but getting image correctly. but box, circle, letters, fill(0xff) not working properly..... tried with 8051 worked fine. what to do???... im not able to spend money for real hardware (im student) how can i trust ??? how can i simulate??
GLCD.PNG
 

You cant trust to simulator software, its just simulator which simulate hardware. You can have trust only in real hardware, there is no compromise about that.

I will check this problem in Proteus.


Best regards,
Peter
 

i did 8051 project with that simulator, no problem with that,

in case of pic its happening , plz check it,, thanx :D
 

OS corrupt,, re installing OS..... whenever open proteus automatically closes..... i will try as soon as i can... sorry for delay.. i'll tell results
 

how to add that function?????, im confused :(

- - - Updated - - -

im going to buy pic mcu, what are all required???? what about programmer??? pic kits and all costs 3000 INR(50$), that is too costly
 

i've done a project motorbike Display system using 8051 based P89V51RD2 (NXP) chip, code HEX reached >30K, 1K ram is full (no space to add even one variable), i cant interface more devices like GLCD, RTC and all.
BTW i heard PIC is robust than 8051, which pic is better to do this project??.. for 8051 (code is 30K, & RAM is 1K) is full,, i need to add more peripherals to my project,,,

You have mentioned that you are knowledgeable in programming the 8051 in C language.

What compiler toolsuite/platform were you utilizing, KEIL, SDCC, GCC, etc?

Have you considered migrating your project to another 8051 variant, leveraging your experience and compiler tools?

Silabs offers several 8051 variants, which can run circles around most other 8-bit microcontrollers, including Microchip PIC16/18 and Atmel AVR families.

Please don't miss understand me, I use both PICs, AVRs and ARMs, however there are certainly other 8051 variants available which are leaps and bounds above the P89V51RD2.

The Silab C8051F12x for example offers 100 MIPS performance, 128KB of Flash, 8KB of RAM, 12-bit ADC with up to 100 ksps, 8-bit ADC with up to 500 ksps, Two 12-bit DACs, Five 16-bit timers, JTAG programming/debugging interface and more.

**broken link removed**

Their development boards and JTAG programmers are quite reasonably priced as well.


BigDog
 
WOWWW......

this is awesome,

the same program of my project is also worked with this MCU, having more memory!!! & more i/0,

question is, is it programmable through UART or ISP???

or i need to buy a new programmer for this?

and proteus don't having this one :(
 

the same program of my project is also worked with this MCU, having more memory!!! & more i/0,

Exactly.

The Silab family of 8051s are supported by most compiler toolsuites, which is why I ask which one your were currently using to develop your code.

I use KEIL to development my apps for the C8051 and it works great.

question is, is it programmable through UART or ISP???

The C8051 family provides a JTAG interface which allows both in-circuit programming and debugging.

or i need to buy a new programmer for this?

The USB JTAG programmer/debugger is quite reasonable at $35 and I believe there are plans available for building your own.

The development boards are also quite inexpensive starting at around $35.

and proteus don't having this one :(

No need for simulation, you can interactively debug your device in-circuit, the power of JTAG.

As I've mentioned before I utilize PICs, AVRs, ARMs and other MCUs for various commercial projects, the C8051 family is impressive and I've incorporated it into several projects.

It's a great platform for utilizing legacy 8051 code.


BigDog
 
im using keil,
im having plan to interface GLCD (needs more i/o),

i got this one for jtag programmer **broken link removed** is it ok?

is AVR programmers will works?

and i need something for PCB design, proteus is good at that.
 
Last edited:

im using keil,
im having plan to interface GLCD (needs more i/o),

Good, KEIL fully supports the Silabs C8051 and the JTAG debugger/programmer.

The C8051F devices are available in packages as large as 100 pins.

i got this one for jtag programmer **broken link removed** is it ok?

I do not believe so, that particular JTAG device is for FPGAs.

You need one of the following:

**broken link removed**

Do you purchase items on eBay?

I regularly see Silab Development Kits with a development board, USB programmer/debugger on eBay at reduced prices.

Silabs eBay Search

You can find a kit like the following for $30 to $40 USD, which includes the development board and USB programmer debugger. Once you have a USB programmer debugger, you can buy only the development boards you need.

**broken link removed**

Silabs also offers a inexpensive Starter Kit:

**broken link removed**

**broken link removed**


and i need something for PCB design, proteus is good at that.

You can still use Proteus for PCB design, the Silabs devices are available in standard packages.


BigDog
 
bigdogguru,
ok,, ill search some... ill ask market here.
Thanx


tpear,
I installed new proteus and working awesome, everything perfect with default micro C program, thanX a lot
but, if i programmed 18f45k22 in mikroC, its perfectly working with P18f4680 in proteus. for 46k22 in proteus, displaying irregular images,
if i program 18f46k20 in microC, used the same pic k20, works perfect,
>
now i need to add a speed sensor, i added magnets & hall sensor to wheel , i used timer&counter in 8051, how to use that in PIC??

>
added ADC to it,
how to change the numbers/texts only on that particular segment in glcd (costume large font)?, if i change value its overlaping.
& i fill display with 0X00, whaole is blinking, how to stable it?
 
Last edited:

@ltsharma

Do you still need help?

If so, please describe exact what advice you require.

Your last post was a little difficult to understand.

The following forum thread discusses several ways to monitor and control motor speed using a PIC:

some questions motor RPM monitoring

Post any additional questions you may have.

BigDog
 

that means, i selected P18f46K22 in MikroC Pro 5.6, and same PIC in Proteus, but its not working properly with GLCD.

>P18f46K20 is working perfect in both (problem is 46k20 is 3.3 v device, and ram is low), i cant continue with 46k20

is real hardware perfectly works with 46K22???

and i did speed sensors & ADC, its working, thanx :smile:
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top