Sửa lỗi no model specified trong proteus 8.6

bit peie = 0x0b.6

bit tmr0ie = 0x0b.5

bit int0ie = 0x0b.4

bit rbie = 0x0b.3

bit tmr0if = 0x0b.2

bit int0if = 0x0b.1

bit rbif = 0x0b.0 // PIR1 for C

bit pspif = 0x0c.7

bit adif = 0x0c.6

bit rcif = 0x0c.5

bit txif = 0x0c.4

bit sspif = 0x0c.3

bit ccp1if = 0x0c.2

bit tmr2if = 0x0c.1

bit tmr1if = 0x0c.0 //PIR2 for C

bit cmif = 0x0d.6

bit eeif = 0x0d.4

bit bclif = 0x0d.3

bit ccp2if = 0x0d.0 // PIE1 for C

bit adie = 0x8c.6

bit rcie = 0x8c.5

bit txie = 0x8c.4

bit sspie = 0x8c.3

bit ccp1ie = 0x8c.2

bit tmr2ie = 0x8c.1

bit tmr1ie = 0x8c.0 //PIE2 for C

bit osfie = 0x8d.7

bit cmie = 0x8d.6

bit eeie = 0x8d.4 // OPTION Bits

bit not_rbpu = 0x81.7

bit intedg = 0x81.6

bit t0cs = 0x81.5

bit t0se = 0x81.4

bit psa = 0x81.3

bit ps2 = 0x81.2

bit ps1 = 0x81.1

bit ps0 = 0x81.0 // EECON1 Bits

bit eepgd = 0x18c.7

bit free = 0x18C.4

bit wrerr = 0x18C.3

bit wren = 0x18C.2

bit wr = 0x18C.1

bit rd = 0x18C.0 Sau đó ta có thể sử dụng lệnh gán PortB = 0x00 để xuất sẽ tiện...

Joined Jan 16, 2014 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 209

hello, i'm still new to proteus and currently working on impact sensing circuit.However,i'm facing some errors once i try to simulate the circuit, as the errors,'no models specified' is being displayed upon the simulation. Thus, i really need some suggestions and guidelines from you guys.Thank you very much.Below are the image of my circuit:printf["No Detect\n\r"];   delay_ms[500];   }    else   {   output_bit[PIN_D1,1];   printf["\fDETECT1\n\r"];   delay_ms[500];   } }//close while }//close main

The problem is,once i tried to paste the above coding with the previous one,it displays error in simulation.I used microC PRO for PIC for your attention.

Last edited by a moderator: Jan 19, 2014

  • 9

Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0

The above code is for CCS C Compiler. It will not compile in mikroC. You can't simulate it when it doesn't compile. Are you telling that mikroC gives error messages?

  • 10

Joined Jan 16, 2014 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 209

oh, the codings are from different softwares,is it ? Then how i need to change the above coding,so that it will compile with lcd coding ? and yes microC gives the error when i compile the above coding with lcd coding.

  • 11

Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0

Code C - [expand]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

TRISD = 0x01; PORTD = 0x00; while[1]{     if[PORTD.F0]{         Delay_ms[50];         if[PORTD.F0]{             PORTD.F1 = 0;             LCD_Out[2,1,"No Detect"];         }     }     else if[!PORTD.F0]{         Delay_ms[50];         if[!PORTD.F0]{             PORTD.F1 = 1;             LCD_Out[2,1,"Detect   "];         }     } }

  • 12

Joined Jan 16, 2014 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 209

Thank for the code,however the microC displays error upon compiling the above coding with previous code [lcd]

  • 13

Joined Dec 4, 2012 Messages 4,280 Helped 822 Reputation 1,654 Reaction score 791 Trophy points 1,393 Location Bangalore, India Activity points 0

Post the code which is giving error.

  • 14

Joined Jan 16, 2014 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1 Activity points 209

This is the code:

Code C - [expand]

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95

// Lcd pinout settings sbit LCD_RS at RB0_bit; sbit LCD_EN at RB1_bit; sbit LCD_D4 at RB2_bit; sbit LCD_D5 at RB3_bit; sbit LCD_D6 at RB4_bit; sbit LCD_D7 at RB5_bit; // Pin direction sbit LCD_RS_Direction at TRISB0_bit; sbit LCD_EN_Direction at TRISB1_bit; sbit LCD_D4_Direction at TRISB2_bit; sbit LCD_D5_Direction at TRISB3_bit; sbit LCD_D6_Direction at TRISB4_bit; sbit LCD_D7_Direction at TRISB5_bit; char txt1[] = "999"; char txt2[] = "012-3456789"; char txt3[] = "013-3456789"; char txt4[] = "014-3456789"; char i;                              // Loop variable void Move_Delay[] {                  // Function used for text moving   Delay_ms[500];                     // You can change the moving speed here } void main[]{   Lcd_Init[];                        // Initialize LCD   while[1] {   Lcd_Cmd[_LCD_CLEAR];               // Clear display   Lcd_Cmd[_LCD_CURSOR_OFF];          // Cursor off   Lcd_Out[1,1,txt1];                 // Write text in first row   Lcd_Out[2,1,txt2];                 // Write text in second row   Delay_ms[3000];   // Moving text    for[i=0; i

Chủ Đề